Class ByteBufReadableBuffer

  • All Implemented Interfaces:
    org.analogweb.ReadableBuffer

    public class ByteBufReadableBuffer
    extends Object
    implements org.analogweb.ReadableBuffer
    Author:
    y2k2mt
    • Method Detail

      • getByteBuf

        protected io.netty.buffer.ByteBuf getByteBuf()
      • read

        public org.analogweb.ReadableBuffer read​(byte[] dst,
                                                 int index,
                                                 int length)
                                          throws IOException
        Specified by:
        read in interface org.analogweb.ReadableBuffer
        Throws:
        IOException
      • read

        public org.analogweb.ReadableBuffer read​(ByteBuffer buffer)
                                          throws IOException
        Specified by:
        read in interface org.analogweb.ReadableBuffer
        Throws:
        IOException
      • to

        public org.analogweb.ReadableBuffer to​(org.analogweb.WritableBuffer writable)
                                        throws IOException
        Specified by:
        to in interface org.analogweb.ReadableBuffer
        Throws:
        IOException
      • getLength

        public long getLength()
        Specified by:
        getLength in interface org.analogweb.ReadableBuffer