Package zmq.io.coder

Class DecoderBase

  • All Implemented Interfaces:
    IDecoder
    Direct Known Subclasses:
    Decoder

    public abstract class DecoderBase
    extends java.lang.Object
    implements IDecoder
    • Field Detail

      • readPos

        private java.nio.ByteBuffer readPos
      • zeroCopy

        private boolean zeroCopy
      • toRead

        private int toRead
      • bufsize

        private int bufsize
      • buf

        private java.nio.ByteBuffer buf
      • errno

        private final Errno errno
    • Constructor Detail

      • DecoderBase

        public DecoderBase​(Errno errno,
                           int bufsize)
    • Method Detail

      • getBuffer

        public java.nio.ByteBuffer getBuffer()
        Specified by:
        getBuffer in interface IDecoder
      • nextStep

        @Deprecated
        protected void nextStep​(byte[] buf,
                                int toRead,
                                IDecoder.Step next)
        Deprecated.
      • nextStep

        protected void nextStep​(java.nio.ByteBuffer buf,
                                IDecoder.Step next)
      • errno

        protected void errno​(int err)
      • errno

        public int errno()
      • destroy

        public void destroy()
        Specified by:
        destroy in interface IDecoder