Class Buffer
java.lang.Object
ca.spottedleaf.ioutil.refcount.ReferenceCounted
ca.spottedleaf.ioutil.buffer.Buffer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionBuffer(boolean debug, String initialKey, MemoryAllocator allocator, long initialCapacity, long maxCapacity) Buffer(boolean debug, String initialKey, MemorySegment segment) -
Method Summary
Modifier and TypeMethodDescriptionlongadvanceWrite(long by) static intcastIndexToInt(long idx) voidclear()voidclearAndFill(byte value) copy(boolean debug, String key, MemoryAllocator allocator) static intdecodeSignedVarInt(int value) static longdecodeSignedVarLong(long value) static intencodeSignedVarInt(int value) static longencodeSignedVarLong(long value) voidensureCapacity(long bytes) voidensureImmediatelyWritable(long bytes) voidensureReadable(long bytes) longlonglonglonglonglonglonglongbooleanisNative()bytereadByte()bytereadByte(long index) voidreadBytes(byte[] dst, int off, int len) voidreadBytes(long index, byte[] dst, int off, int len) charcharreadCharBE(long index) charcharreadCharLE(long index) charcharreadCharNO(long index) voidreadCharsBE(char[] dst, int off, int len) voidreadCharsBE(long index, char[] dst, int off, int len) voidreadCharsLE(char[] dst, int off, int len) voidreadCharsLE(long index, char[] dst, int off, int len) voidreadCharsNO(char[] dst, int off, int len) voidreadCharsNO(long index, char[] dst, int off, int len) doubledoublereadDoubleBE(long index) doubledoublereadDoubleLE(long index) doubledoublereadDoubleNO(long index) voidreadDoublesBE(double[] dst, int off, int len) voidreadDoublesBE(long index, double[] dst, int off, int len) voidreadDoublesLE(double[] dst, int off, int len) voidreadDoublesLE(long index, double[] dst, int off, int len) voidreadDoublesNO(double[] dst, int off, int len) voidreadDoublesNO(long index, double[] dst, int off, int len) floatfloatreadFloatBE(long index) floatfloatreadFloatLE(long index) floatfloatreadFloatNO(long index) voidreadFloatsBE(float[] dst, int off, int len) voidreadFloatsBE(long index, float[] dst, int off, int len) voidreadFloatsLE(float[] dst, int off, int len) voidreadFloatsLE(long index, float[] dst, int off, int len) voidreadFloatsNO(float[] dst, int off, int len) voidreadFloatsNO(long index, float[] dst, int off, int len) intintreadIntBE(long index) intintreadIntLE(long index) intintreadIntNO(long index) longreadIntoBuffer(Buffer dst) voidreadIntoBuffer(Buffer dst, long nBytes) intvoidreadIntoByteBuffer(ByteBuffer dst, int nBytes) longreadIntoChannel(WritableByteChannel channel) voidreadIntoChannel(WritableByteChannel channel, long nBytes) longreadIntoSegment(MemorySegment dst, long dstOff) voidreadIntoSegment(MemorySegment dst, long dstOff, long nBytes) voidreadIntsBE(int[] dst, int off, int len) voidreadIntsBE(long index, int[] dst, int off, int len) voidreadIntsLE(int[] dst, int off, int len) voidreadIntsLE(long index, int[] dst, int off, int len) voidreadIntsNO(int[] dst, int off, int len) voidreadIntsNO(long index, int[] dst, int off, int len) longlongreadLongBE(long index) longlongreadLongLE(long index) longlongreadLongNO(long index) voidreadLongsBE(long[] dst, int off, int len) voidreadLongsBE(long index, long[] dst, int off, int len) voidreadLongsLE(long[] dst, int off, int len) voidreadLongsLE(long index, long[] dst, int off, int len) voidreadLongsNO(long[] dst, int off, int len) voidreadLongsNO(long index, long[] dst, int off, int len) shortshortreadShortBE(long index) shortshortreadShortLE(long index) shortshortreadShortNO(long index) voidreadShortsBE(long index, short[] dst, int off, int len) voidreadShortsBE(short[] dst, int off, int len) voidreadShortsLE(long index, short[] dst, int off, int len) voidreadShortsLE(short[] dst, int off, int len) voidreadShortsNO(long index, short[] dst, int off, int len) voidreadShortsNO(short[] dst, int off, int len) intintreadSignedMediumBE(long index) intintreadSignedMediumLE(long index) voidreadSignedMediumsBE(int[] dst, int off, int len) voidreadSignedMediumsBE(long index, int[] dst, int off, int len) voidreadSignedMediumsLE(int[] dst, int off, int len) voidreadSignedMediumsLE(long index, int[] dst, int off, int len) intintreadSignedVarInt(long index) longlongreadSignedVarLong(long index) intintreadUnsignedMediumBE(long index) intintreadUnsignedMediumLE(long index) voidreadUnsignedMediumsBE(int[] dst, int off, int len) voidreadUnsignedMediumsBE(long index, int[] dst, int off, int len) voidreadUnsignedMediumsLE(int[] dst, int off, int len) voidreadUnsignedMediumsLE(long index, int[] dst, int off, int len) intintreadUnsignedVarInt(long index) longlongreadUnsignedVarLong(long index) protected voidvoidsetIndices(long readerIndex, long writerIndex) voidsetReaderIndex(long readerIndex) voidsetWriterIndex(long writerIndex) longvoidskipRead(long nBytes) voidunread(long by) voidverifyAgainst(MemorySegment seg, long segOff, long thisOff, long nBytes) voidwriteByte(byte val) voidwriteByte(long index, byte val) voidwriteBytes(byte[] src, int off, int len) voidwriteBytes(long index, byte[] src, int off, int len) voidwriteCharBE(char val) voidwriteCharBE(long index, char val) voidwriteCharLE(char val) voidwriteCharLE(long index, char val) voidwriteCharNO(char val) voidwriteCharNO(long index, char val) voidwriteCharsBE(char[] src, int off, int len) voidwriteCharsBE(long index, char[] src, int off, int len) voidwriteCharsLE(char[] src, int off, int len) voidwriteCharsLE(long index, char[] src, int off, int len) voidwriteCharsNO(char[] src, int off, int len) voidwriteCharsNO(long index, char[] src, int off, int len) voidwriteDoubleBE(double val) voidwriteDoubleBE(long index, double val) voidwriteDoubleLE(double val) voidwriteDoubleLE(long index, double val) voidwriteDoubleNO(double val) voidwriteDoubleNO(long index, double val) voidwriteDoublesBE(double[] src, int off, int len) voidwriteDoublesBE(long index, double[] src, int off, int len) voidwriteDoublesLE(double[] src, int off, int len) voidwriteDoublesLE(long index, double[] src, int off, int len) voidwriteDoublesNO(double[] src, int off, int len) voidwriteDoublesNO(long index, double[] src, int off, int len) voidwriteFloatBE(float val) voidwriteFloatBE(long index, float val) voidwriteFloatLE(float val) voidwriteFloatLE(long index, float val) voidwriteFloatNO(float val) voidwriteFloatNO(long index, float val) voidwriteFloatsBE(float[] src, int off, int len) voidwriteFloatsBE(long index, float[] src, int off, int len) voidwriteFloatsLE(float[] src, int off, int len) voidwriteFloatsLE(long index, float[] src, int off, int len) voidwriteFloatsNO(float[] src, int off, int len) voidwriteFloatsNO(long index, float[] src, int off, int len) longwriteFromBuffer(Buffer src) voidwriteFromBuffer(Buffer src, long nBytes) intvoidwriteFromByteBuffer(ByteBuffer src, int nBytes) longwriteFromChannel(ReadableByteChannel channel) voidwriteFromChannel(ReadableByteChannel channel, long nBytes) voidwriteFromSegment(MemorySegment src, long srcOff, long nBytes) voidwriteIntBE(int val) voidwriteIntBE(long index, int val) voidwriteIntLE(int val) voidwriteIntLE(long index, int val) voidwriteIntNO(int val) voidwriteIntNO(long index, int val) voidwriteIntsBE(int[] src, int off, int len) voidwriteIntsBE(long index, int[] src, int off, int len) voidwriteIntsLE(int[] src, int off, int len) voidwriteIntsLE(long index, int[] src, int off, int len) voidwriteIntsNO(int[] src, int off, int len) voidwriteIntsNO(long index, int[] src, int off, int len) voidwriteLongBE(long val) voidwriteLongBE(long index, long val) voidwriteLongLE(long val) voidwriteLongLE(long index, long val) voidwriteLongNO(long val) voidwriteLongNO(long index, long val) voidwriteLongsBE(long[] src, int off, int len) voidwriteLongsBE(long index, long[] src, int off, int len) voidwriteLongsLE(long[] src, int off, int len) voidwriteLongsLE(long index, long[] src, int off, int len) voidwriteLongsNO(long[] src, int off, int len) voidwriteLongsNO(long index, long[] src, int off, int len) voidwriteMediumBE(int medium) voidwriteMediumBE(long index, int medium) voidwriteMediumLE(int medium) voidwriteMediumLE(long index, int medium) voidwriteMediumsBE(int[] src, int off, int len) voidwriteMediumsBE(long index, int[] src, int off, int len) voidwriteMediumsLE(int[] src, int off, int len) voidwriteMediumsLE(long index, int[] src, int off, int len) voidwriteShortBE(long index, short val) voidwriteShortBE(short val) voidwriteShortLE(long index, short val) voidwriteShortLE(short val) voidwriteShortNO(long index, short val) voidwriteShortNO(short val) voidwriteShortsBE(long index, short[] src, int off, int len) voidwriteShortsBE(short[] src, int off, int len) voidwriteShortsLE(long index, short[] src, int off, int len) voidwriteShortsLE(short[] src, int off, int len) voidwriteShortsNO(long index, short[] src, int off, int len) voidwriteShortsNO(short[] src, int off, int len) longwriteSignedVarInt(int value) longwriteSignedVarInt(long index, int value) longwriteSignedVarLong(long value) longwriteSignedVarLong(long index, long value) longwriteUnsignedVarInt(int value) longwriteUnsignedVarInt(long index, int value) longwriteUnsignedVarLong(long value) longwriteUnsignedVarLong(long index, long value) Methods inherited from class ReferenceCounted
decReferenceCount, ensureRefCountZero, incReferenceCount
-
Field Details
-
MAX_VAR_INT_BYTES
public static final long MAX_VAR_INT_BYTES- See Also:
-
MAX_VAR_LONG_BYTES
public static final long MAX_VAR_LONG_BYTES- See Also:
-
-
Constructor Details
-
Buffer
public Buffer(boolean debug, String initialKey, MemoryAllocator allocator, long initialCapacity, long maxCapacity) -
Buffer
-
Buffer
-
-
Method Details
-
verifyAgainst
-
getMemoryAsBuffer
-
getBufferAsRead
-
getBufferAsWriter
-
getMemoryAsSegment
-
refCountZero
protected void refCountZero()- Specified by:
refCountZeroin classReferenceCounted
-
isNative
public boolean isNative() -
getCurrentCapacity
public long getCurrentCapacity() -
getMaxCapacity
public long getMaxCapacity() -
getReaderIndex
public long getReaderIndex() -
setReaderIndex
public void setReaderIndex(long readerIndex) -
getWriterIndex
public long getWriterIndex() -
setWriterIndex
public void setWriterIndex(long writerIndex) -
setIndices
public void setIndices(long readerIndex, long writerIndex) -
clear
public void clear() -
clearAndFill
public void clearAndFill(byte value) -
getReadableBytes
public long getReadableBytes() -
shiftReaderToZero
public long shiftReaderToZero() -
getWritableBytes
public long getWritableBytes() -
getImmediatelyWritableBytes
public long getImmediatelyWritableBytes() -
copy
-
copy
-
getNativeAddress
public long getNativeAddress() -
getBackingHeapObject
-
castIndexToInt
public static int castIndexToInt(long idx) -
unread
public void unread(long by) -
advanceWrite
public long advanceWrite(long by) -
ensureReadable
public void ensureReadable(long bytes) -
ensureImmediatelyWritable
public void ensureImmediatelyWritable(long bytes) -
ensureCapacity
public void ensureCapacity(long bytes) -
readByte
public byte readByte() -
readByte
public byte readByte(long index) -
readBytes
public void readBytes(byte[] dst, int off, int len) -
readBytes
public void readBytes(long index, byte[] dst, int off, int len) -
readShortNO
public short readShortNO() -
readShortNO
public short readShortNO(long index) -
readShortsNO
public void readShortsNO(short[] dst, int off, int len) -
readShortsNO
public void readShortsNO(long index, short[] dst, int off, int len) -
readShortBE
public short readShortBE() -
readShortBE
public short readShortBE(long index) -
readShortsBE
public void readShortsBE(short[] dst, int off, int len) -
readShortsBE
public void readShortsBE(long index, short[] dst, int off, int len) -
readShortLE
public short readShortLE() -
readShortLE
public short readShortLE(long index) -
readShortsLE
public void readShortsLE(short[] dst, int off, int len) -
readShortsLE
public void readShortsLE(long index, short[] dst, int off, int len) -
readCharNO
public char readCharNO() -
readCharNO
public char readCharNO(long index) -
readCharsNO
public void readCharsNO(char[] dst, int off, int len) -
readCharsNO
public void readCharsNO(long index, char[] dst, int off, int len) -
readCharBE
public char readCharBE() -
readCharBE
public char readCharBE(long index) -
readCharsBE
public void readCharsBE(char[] dst, int off, int len) -
readCharsBE
public void readCharsBE(long index, char[] dst, int off, int len) -
readCharLE
public char readCharLE() -
readCharLE
public char readCharLE(long index) -
readCharsLE
public void readCharsLE(char[] dst, int off, int len) -
readCharsLE
public void readCharsLE(long index, char[] dst, int off, int len) -
readSignedMediumBE
public int readSignedMediumBE() -
readSignedMediumBE
public int readSignedMediumBE(long index) -
readSignedMediumsBE
public void readSignedMediumsBE(int[] dst, int off, int len) -
readSignedMediumsBE
public void readSignedMediumsBE(long index, int[] dst, int off, int len) -
readUnsignedMediumBE
public int readUnsignedMediumBE() -
readUnsignedMediumBE
public int readUnsignedMediumBE(long index) -
readUnsignedMediumsBE
public void readUnsignedMediumsBE(int[] dst, int off, int len) -
readUnsignedMediumsBE
public void readUnsignedMediumsBE(long index, int[] dst, int off, int len) -
readSignedMediumLE
public int readSignedMediumLE() -
readSignedMediumLE
public int readSignedMediumLE(long index) -
readSignedMediumsLE
public void readSignedMediumsLE(int[] dst, int off, int len) -
readSignedMediumsLE
public void readSignedMediumsLE(long index, int[] dst, int off, int len) -
readUnsignedMediumLE
public int readUnsignedMediumLE() -
readUnsignedMediumLE
public int readUnsignedMediumLE(long index) -
readUnsignedMediumsLE
public void readUnsignedMediumsLE(int[] dst, int off, int len) -
readUnsignedMediumsLE
public void readUnsignedMediumsLE(long index, int[] dst, int off, int len) -
readIntNO
public int readIntNO() -
readIntNO
public int readIntNO(long index) -
readIntsNO
public void readIntsNO(int[] dst, int off, int len) -
readIntsNO
public void readIntsNO(long index, int[] dst, int off, int len) -
readIntBE
public int readIntBE() -
readIntBE
public int readIntBE(long index) -
readIntsBE
public void readIntsBE(int[] dst, int off, int len) -
readIntsBE
public void readIntsBE(long index, int[] dst, int off, int len) -
readIntLE
public int readIntLE() -
readIntLE
public int readIntLE(long index) -
readIntsLE
public void readIntsLE(int[] dst, int off, int len) -
readIntsLE
public void readIntsLE(long index, int[] dst, int off, int len) -
readLongNO
public long readLongNO() -
readLongNO
public long readLongNO(long index) -
readLongsNO
public void readLongsNO(long[] dst, int off, int len) -
readLongsNO
public void readLongsNO(long index, long[] dst, int off, int len) -
readLongBE
public long readLongBE() -
readLongBE
public long readLongBE(long index) -
readLongsBE
public void readLongsBE(long[] dst, int off, int len) -
readLongsBE
public void readLongsBE(long index, long[] dst, int off, int len) -
readLongLE
public long readLongLE() -
readLongLE
public long readLongLE(long index) -
readLongsLE
public void readLongsLE(long[] dst, int off, int len) -
readLongsLE
public void readLongsLE(long index, long[] dst, int off, int len) -
readFloatNO
public float readFloatNO() -
readFloatNO
public float readFloatNO(long index) -
readFloatsNO
public void readFloatsNO(float[] dst, int off, int len) -
readFloatsNO
public void readFloatsNO(long index, float[] dst, int off, int len) -
readFloatBE
public float readFloatBE() -
readFloatBE
public float readFloatBE(long index) -
readFloatsBE
public void readFloatsBE(float[] dst, int off, int len) -
readFloatsBE
public void readFloatsBE(long index, float[] dst, int off, int len) -
readFloatLE
public float readFloatLE() -
readFloatLE
public float readFloatLE(long index) -
readFloatsLE
public void readFloatsLE(float[] dst, int off, int len) -
readFloatsLE
public void readFloatsLE(long index, float[] dst, int off, int len) -
readDoubleNO
public double readDoubleNO() -
readDoubleNO
public double readDoubleNO(long index) -
readDoublesNO
public void readDoublesNO(double[] dst, int off, int len) -
readDoublesNO
public void readDoublesNO(long index, double[] dst, int off, int len) -
readDoubleBE
public double readDoubleBE() -
readDoubleBE
public double readDoubleBE(long index) -
readDoublesBE
public void readDoublesBE(double[] dst, int off, int len) -
readDoublesBE
public void readDoublesBE(long index, double[] dst, int off, int len) -
readDoubleLE
public double readDoubleLE() -
readDoubleLE
public double readDoubleLE(long index) -
readDoublesLE
public void readDoublesLE(double[] dst, int off, int len) -
readDoublesLE
public void readDoublesLE(long index, double[] dst, int off, int len) -
decodeSignedVarInt
public static int decodeSignedVarInt(int value) -
readSignedVarInt
public int readSignedVarInt() -
readSignedVarInt
public int readSignedVarInt(long index) -
readUnsignedVarInt
public int readUnsignedVarInt() -
readUnsignedVarInt
public int readUnsignedVarInt(long index) -
decodeSignedVarLong
public static long decodeSignedVarLong(long value) -
readSignedVarLong
public long readSignedVarLong() -
readSignedVarLong
public long readSignedVarLong(long index) -
readUnsignedVarLong
public long readUnsignedVarLong() -
readUnsignedVarLong
public long readUnsignedVarLong(long index) -
readIntoChannel
- Throws:
IOException
-
readIntoChannel
- Throws:
IOException
-
skipRead
public void skipRead(long nBytes) -
readIntoBuffer
-
readIntoBuffer
-
readIntoByteBuffer
-
readIntoByteBuffer
-
readIntoSegment
-
readIntoSegment
-
writeByte
public void writeByte(byte val) -
writeByte
public void writeByte(long index, byte val) -
writeBytes
public void writeBytes(byte[] src, int off, int len) -
writeBytes
public void writeBytes(long index, byte[] src, int off, int len) -
writeShortNO
public void writeShortNO(short val) -
writeShortNO
public void writeShortNO(long index, short val) -
writeShortsNO
public void writeShortsNO(short[] src, int off, int len) -
writeShortsNO
public void writeShortsNO(long index, short[] src, int off, int len) -
writeShortBE
public void writeShortBE(short val) -
writeShortBE
public void writeShortBE(long index, short val) -
writeShortsBE
public void writeShortsBE(short[] src, int off, int len) -
writeShortsBE
public void writeShortsBE(long index, short[] src, int off, int len) -
writeShortLE
public void writeShortLE(short val) -
writeShortLE
public void writeShortLE(long index, short val) -
writeShortsLE
public void writeShortsLE(short[] src, int off, int len) -
writeShortsLE
public void writeShortsLE(long index, short[] src, int off, int len) -
writeCharNO
public void writeCharNO(char val) -
writeCharNO
public void writeCharNO(long index, char val) -
writeCharsNO
public void writeCharsNO(char[] src, int off, int len) -
writeCharsNO
public void writeCharsNO(long index, char[] src, int off, int len) -
writeCharBE
public void writeCharBE(char val) -
writeCharBE
public void writeCharBE(long index, char val) -
writeCharsBE
public void writeCharsBE(char[] src, int off, int len) -
writeCharsBE
public void writeCharsBE(long index, char[] src, int off, int len) -
writeCharLE
public void writeCharLE(char val) -
writeCharLE
public void writeCharLE(long index, char val) -
writeCharsLE
public void writeCharsLE(char[] src, int off, int len) -
writeCharsLE
public void writeCharsLE(long index, char[] src, int off, int len) -
writeMediumBE
public void writeMediumBE(int medium) -
writeMediumBE
public void writeMediumBE(long index, int medium) -
writeMediumsBE
public void writeMediumsBE(int[] src, int off, int len) -
writeMediumsBE
public void writeMediumsBE(long index, int[] src, int off, int len) -
writeMediumLE
public void writeMediumLE(int medium) -
writeMediumLE
public void writeMediumLE(long index, int medium) -
writeMediumsLE
public void writeMediumsLE(int[] src, int off, int len) -
writeMediumsLE
public void writeMediumsLE(long index, int[] src, int off, int len) -
writeIntNO
public void writeIntNO(int val) -
writeIntNO
public void writeIntNO(long index, int val) -
writeIntsNO
public void writeIntsNO(int[] src, int off, int len) -
writeIntsNO
public void writeIntsNO(long index, int[] src, int off, int len) -
writeIntBE
public void writeIntBE(int val) -
writeIntBE
public void writeIntBE(long index, int val) -
writeIntsBE
public void writeIntsBE(int[] src, int off, int len) -
writeIntsBE
public void writeIntsBE(long index, int[] src, int off, int len) -
writeIntLE
public void writeIntLE(int val) -
writeIntLE
public void writeIntLE(long index, int val) -
writeIntsLE
public void writeIntsLE(int[] src, int off, int len) -
writeIntsLE
public void writeIntsLE(long index, int[] src, int off, int len) -
writeLongNO
public void writeLongNO(long val) -
writeLongNO
public void writeLongNO(long index, long val) -
writeLongsNO
public void writeLongsNO(long[] src, int off, int len) -
writeLongsNO
public void writeLongsNO(long index, long[] src, int off, int len) -
writeLongBE
public void writeLongBE(long val) -
writeLongBE
public void writeLongBE(long index, long val) -
writeLongsBE
public void writeLongsBE(long[] src, int off, int len) -
writeLongsBE
public void writeLongsBE(long index, long[] src, int off, int len) -
writeLongLE
public void writeLongLE(long val) -
writeLongLE
public void writeLongLE(long index, long val) -
writeLongsLE
public void writeLongsLE(long[] src, int off, int len) -
writeLongsLE
public void writeLongsLE(long index, long[] src, int off, int len) -
writeFloatNO
public void writeFloatNO(float val) -
writeFloatNO
public void writeFloatNO(long index, float val) -
writeFloatsNO
public void writeFloatsNO(float[] src, int off, int len) -
writeFloatsNO
public void writeFloatsNO(long index, float[] src, int off, int len) -
writeFloatBE
public void writeFloatBE(float val) -
writeFloatBE
public void writeFloatBE(long index, float val) -
writeFloatsBE
public void writeFloatsBE(float[] src, int off, int len) -
writeFloatsBE
public void writeFloatsBE(long index, float[] src, int off, int len) -
writeFloatLE
public void writeFloatLE(float val) -
writeFloatLE
public void writeFloatLE(long index, float val) -
writeFloatsLE
public void writeFloatsLE(float[] src, int off, int len) -
writeFloatsLE
public void writeFloatsLE(long index, float[] src, int off, int len) -
writeDoubleNO
public void writeDoubleNO(double val) -
writeDoubleNO
public void writeDoubleNO(long index, double val) -
writeDoublesNO
public void writeDoublesNO(double[] src, int off, int len) -
writeDoublesNO
public void writeDoublesNO(long index, double[] src, int off, int len) -
writeDoubleBE
public void writeDoubleBE(double val) -
writeDoubleBE
public void writeDoubleBE(long index, double val) -
writeDoublesBE
public void writeDoublesBE(double[] src, int off, int len) -
writeDoublesBE
public void writeDoublesBE(long index, double[] src, int off, int len) -
writeDoubleLE
public void writeDoubleLE(double val) -
writeDoubleLE
public void writeDoubleLE(long index, double val) -
writeDoublesLE
public void writeDoublesLE(double[] src, int off, int len) -
writeDoublesLE
public void writeDoublesLE(long index, double[] src, int off, int len) -
encodeSignedVarInt
public static int encodeSignedVarInt(int value) -
writeSignedVarInt
public long writeSignedVarInt(int value) -
writeSignedVarInt
public long writeSignedVarInt(long index, int value) -
writeUnsignedVarInt
public long writeUnsignedVarInt(int value) -
writeUnsignedVarInt
public long writeUnsignedVarInt(long index, int value) -
encodeSignedVarLong
public static long encodeSignedVarLong(long value) -
writeSignedVarLong
public long writeSignedVarLong(long value) -
writeSignedVarLong
public long writeSignedVarLong(long index, long value) -
writeUnsignedVarLong
public long writeUnsignedVarLong(long value) -
writeUnsignedVarLong
public long writeUnsignedVarLong(long index, long value) -
writeFromChannel
- Throws:
IOException
-
writeFromChannel
- Throws:
IOException
-
writeFromBuffer
-
writeFromBuffer
-
writeFromByteBuffer
-
writeFromByteBuffer
-
writeFromSegment
-