Package ome.codecs

Class ByteVector


  • public class ByteVector
    extends Object
    A growable array of bytes.
    Author:
    Wayne Rasband wsr at nih.gov
    • Constructor Detail

      • ByteVector

        public ByteVector()
      • ByteVector

        public ByteVector​(int initialSize)
      • ByteVector

        public ByteVector​(byte[] byteBuffer)
    • Method Detail

      • add

        public void add​(byte x)
      • size

        public int size()
      • get

        public byte get​(int index)
      • add

        public void add​(byte[] array)
      • add

        public void add​(byte[] array,
                        int off,
                        int len)
      • clear

        public void clear()
      • toByteArray

        public byte[] toByteArray()