Class ByteSource.SignedFixedLengthNumber<V>

  • All Implemented Interfaces:
    ByteSource
    Enclosing interface:
    ByteSource

    public static class ByteSource.SignedFixedLengthNumber<V>
    extends java.lang.Object
    implements ByteSource
    Fixed length signed number encoding. Inverts first bit (so that neg < pos), then just posts all bytes from the buffer. Assumes buffer is of correct length.
    • Constructor Detail

      • SignedFixedLengthNumber

        public SignedFixedLengthNumber​(ValueAccessor<V> accessor,
                                       V data)
    • Method Detail

      • next

        public int next()
        Description copied from interface: ByteSource
        Consume the next byte, unsigned. Must be between 0 and 255, or END_OF_STREAM if there are no more bytes.
        Specified by:
        next in interface ByteSource