Package herddb.utils

Class ExtendedDataOutputStream

    • Constructor Detail

      • ExtendedDataOutputStream

        public ExtendedDataOutputStream​(OutputStream out)
    • Method Detail

      • writeVInt

        public void writeVInt​(int i)
                       throws IOException
        Writes an int in a variable-length format. Writes between one and five bytes. Smaller values take fewer bytes.
        Parameters:
        i -
        Throws:
        IOException
      • writeVLong

        public void writeVLong​(long i)
                        throws IOException
        Writes a long in a variable-length format. Writes between one and nine bytes. Smaller values take fewer bytes. Negative numbers are not supported.
        Parameters:
        i -
        Throws:
        IOException
      • writeArray

        public void writeArray​(byte[] data,
                               int offset,
                               int len)
                        throws IOException
        Throws:
        IOException