Package gnu.lists

Class ByteVector<E>

    • Field Detail

      • empty

        protected static byte[] empty
    • Constructor Detail

      • ByteVector

        public ByteVector()
    • Method Detail

      • getBufferLength

        public int getBufferLength()
        Get the allocated length of the data buffer.
        Specified by:
        getBufferLength in class SimpleVector<E>
      • getByte

        public final byte getByte​(int index)
      • setByte

        public final void setByte​(int index,
                                  byte value)
      • setByteRaw

        public final void setByteRaw​(int index,
                                     byte value)
      • add

        public void add​(byte v)
      • clearBuffer

        protected void clearBuffer​(int start,
                                   int count)
        Specified by:
        clearBuffer in class SimpleVector<E>
      • copyFrom

        public void copyFrom​(int index,
                             ByteVector src,
                             int start,
                             int end)
      • utf8ToString

        public String utf8ToString​(int start,
                                   int length)
        Covert bytes, interpreted as UTF-8 characters, to a String.
      • utf16ToString

        public String utf16ToString​(int start,
                                    int length)
      • utf16ToString

        public String utf16ToString​(int start,
                                    int length,
                                    boolean bigEndian)