Package herddb.utils

Class VisibleByteArrayOutputStream

    • Constructor Detail

      • VisibleByteArrayOutputStream

        public VisibleByteArrayOutputStream()
      • VisibleByteArrayOutputStream

        public VisibleByteArrayOutputStream​(int size)
    • Method Detail

      • write

        public void write​(byte[] b,
                          int off,
                          int len)
        Overrides:
        write in class OutputStream
      • reset

        public void reset()
      • xxhash64

        public byte[] xxhash64()
      • toByteArray

        public byte[] toByteArray()
      • toByteArrayNoCopy

        public byte[] toByteArrayNoCopy()
        Return the internal buffer or perform a copy
        Returns:
        the internal buffer or a copy
      • size

        public int size()
      • getBuffer

        public byte[] getBuffer()