Package | Description |
---|---|
com.esotericsoftware.kryo.io |
Modifier and Type | Method and Description |
---|---|
boolean |
ByteBufferInput.canReadInt()
Returns true if enough bytes are available to read an int with
ByteBufferInput.readInt(boolean) . |
boolean |
Input.canReadInt()
Returns true if enough bytes are available to read an int with
Input.readInt(boolean) . |
boolean |
ByteBufferInput.canReadLong()
Returns true if enough bytes are available to read a long with
ByteBufferInput.readLong(boolean) . |
boolean |
Input.canReadLong()
Returns true if enough bytes are available to read a long with
Input.readLong(boolean) . |
void |
ByteBufferOutput.close()
Flushes any buffered bytes and closes the underlying OutputStream, if any.
|
void |
ByteBufferInput.close()
Closes the underlying InputStream, if any.
|
void |
Output.close()
Flushes any buffered bytes and closes the underlying OutputStream, if any.
|
void |
Input.close()
Closes the underlying InputStream, if any.
|
protected int |
InputChunked.fill(byte[] buffer,
int offset,
int count) |
protected int |
Input.fill(byte[] buffer,
int offset,
int count)
Fills the buffer with more bytes.
|
protected int |
ByteBufferInput.fill(ByteBuffer buffer,
int offset,
int count)
Fills the buffer with more bytes.
|
void |
ByteBufferOutput.flush()
Writes the buffered bytes to the underlying OutputStream, if any.
|
void |
Output.flush()
Writes the buffered bytes to the underlying OutputStream, if any.
|
void |
OutputChunked.flush() |
int |
ByteBufferInput.read()
Reads a single byte as an int from 0 to 255, or -1 if there are no more bytes are available.
|
int |
Input.read()
Reads a single byte as an int from 0 to 255, or -1 if there are no more bytes are available.
|
int |
ByteBufferInput.read(byte[] bytes)
Reads bytes.length bytes or less and writes them to the specified byte[], starting at 0, and returns the number of bytes
read.
|
int |
Input.read(byte[] bytes)
Reads bytes.length bytes or less and writes them to the specified byte[], starting at 0, and returns the number of bytes
read.
|
int |
ByteBufferInput.read(byte[] bytes,
int offset,
int count)
Reads count bytes or less and writes them to the specified byte[], starting at offset, and returns the number of bytes read
or -1 if no more bytes are available.
|
int |
Input.read(byte[] bytes,
int offset,
int count)
Reads count bytes or less and writes them to the specified byte[], starting at offset, and returns the number of bytes read
or -1 if no more bytes are available.
|
boolean |
ByteBufferInput.readBoolean()
Reads a 1 byte boolean.
|
boolean |
Input.readBoolean()
Reads a 1 byte boolean.
|
boolean |
UnsafeMemoryInput.readBoolean()
Reads a 1 byte boolean.
|
byte |
ByteBufferInput.readByte()
Reads a single byte.
|
byte |
Input.readByte()
Reads a single byte.
|
byte |
UnsafeMemoryInput.readByte()
Reads a single byte.
|
void |
ByteBufferInput.readBytes(byte[] bytes)
Reads bytes.length bytes and writes them to the specified byte[], starting at index 0.
|
void |
Input.readBytes(byte[] bytes)
Reads bytes.length bytes and writes them to the specified byte[], starting at index 0.
|
void |
ByteBufferInput.readBytes(byte[] bytes,
int offset,
int count)
Reads count bytes and writes them to the specified byte[], starting at offset.
|
void |
Input.readBytes(byte[] bytes,
int offset,
int count)
Reads count bytes and writes them to the specified byte[], starting at offset.
|
byte[] |
ByteBufferInput.readBytes(int length)
Reads the specified number of bytes into a new byte[].
|
byte[] |
Input.readBytes(int length)
Reads the specified number of bytes into a new byte[].
|
byte[] |
UnsafeMemoryInput.readBytes(int length)
Reads the specified number of bytes into a new byte[].
|
void |
UnsafeInput.readBytes(Object dstObj,
long offset,
long count) |
void |
UnsafeMemoryInput.readBytes(Object dstObj,
long offset,
long count) |
int |
ByteBufferInput.readByteUnsigned()
Reads a byte as an int from 0 to 255.
|
int |
Input.readByteUnsigned()
Reads a byte as an int from 0 to 255.
|
char |
ByteBufferInput.readChar()
Reads a 2 byte char.
|
char |
UnsafeInput.readChar() |
char |
Input.readChar()
Reads a 2 byte char.
|
char |
UnsafeMemoryInput.readChar()
Reads a 2 byte char.
|
char[] |
ByteBufferInput.readChars(int length)
Bulk input of a char array.
|
char[] |
UnsafeInput.readChars(int length)
Bulk input of a char array.
|
char[] |
Input.readChars(int length)
Bulk input of a char array.
|
char[] |
UnsafeMemoryInput.readChars(int length)
Bulk input of a char array.
|
double |
ByteBufferInput.readDouble()
Reads an 8 bytes double.
|
double |
UnsafeInput.readDouble()
Writes an 8 byte double.
|
double |
Input.readDouble()
Reads an 8 bytes double.
|
double |
UnsafeMemoryInput.readDouble()
Reads an 8 byte double.
|
double |
ByteBufferInput.readDouble(double precision,
boolean optimizePositive)
Reads a 1-9 byte double with reduced precision.
|
double |
Input.readDouble(double precision,
boolean optimizePositive)
Reads a 1-9 byte double with reduced precision.
|
double[] |
ByteBufferInput.readDoubles(int length)
Bulk input of a double array.
|
double[] |
UnsafeInput.readDoubles(int length)
Bulk input of a double array.
|
double[] |
Input.readDoubles(int length)
Bulk input of a double array.
|
double[] |
UnsafeMemoryInput.readDoubles(int length)
Bulk input of a double array.
|
float |
ByteBufferInput.readFloat()
Reads a 4 byte float.
|
float |
UnsafeInput.readFloat()
Reads a 4 byte float.
|
float |
Input.readFloat()
Reads a 4 byte float.
|
float |
UnsafeMemoryInput.readFloat()
Reads a 4 byte float.
|
float |
ByteBufferInput.readFloat(float precision,
boolean optimizePositive)
Reads a 1-5 byte float with reduced precision.
|
float |
Input.readFloat(float precision,
boolean optimizePositive)
Reads a 1-5 byte float with reduced precision.
|
float[] |
ByteBufferInput.readFloats(int length)
Bulk input of a float array.
|
float[] |
UnsafeInput.readFloats(int length)
Bulk input of a float array.
|
float[] |
Input.readFloats(int length)
Bulk input of a float array.
|
float[] |
UnsafeMemoryInput.readFloats(int length)
Bulk input of a float array.
|
int |
ByteBufferInput.readInt() |
int |
UnsafeInput.readInt()
Reads a 4 byte int.
|
int |
Input.readInt()
Reads a 4 byte int.
|
int |
UnsafeMemoryInput.readInt()
Reads a 4 byte int.
|
int |
ByteBufferInput.readInt(boolean optimizePositive) |
int |
UnsafeInput.readInt(boolean optimizePositive) |
int |
FastInput.readInt(boolean optimizePositive) |
int |
Input.readInt(boolean optimizePositive)
Reads a 1-5 byte int.
|
int |
UnsafeMemoryInput.readInt(boolean optimizePositive) |
int[] |
ByteBufferInput.readInts(int length)
Bulk input of an int array.
|
int[] |
UnsafeInput.readInts(int length)
Bulk input of an int array.
|
int[] |
Input.readInts(int length)
Bulk input of an int array.
|
int[] |
UnsafeInput.readInts(int length,
boolean optimizePositive)
Bulk input of an int array.
|
int[] |
Input.readInts(int length,
boolean optimizePositive)
Bulk input of an int array.
|
int[] |
UnsafeMemoryInput.readInts(int length,
boolean optimizePositive)
Bulk input of an int array.
|
long |
ByteBufferInput.readLong()
Reads an 8 byte long.
|
long |
UnsafeInput.readLong()
Reads an 8 byte long.
|
long |
Input.readLong()
Reads an 8 byte long.
|
long |
UnsafeMemoryInput.readLong()
Reads an 8 byte long.
|
long |
ByteBufferInput.readLong(boolean optimizePositive)
Reads a 1-9 byte long.
|
long |
UnsafeInput.readLong(boolean optimizePositive) |
long |
FastInput.readLong(boolean optimizePositive) |
long |
Input.readLong(boolean optimizePositive)
Reads a 1-9 byte long.
|
long |
UnsafeMemoryInput.readLong(boolean optimizePositive) |
long[] |
ByteBufferInput.readLongs(int length)
Bulk input of a long array.
|
long[] |
UnsafeInput.readLongs(int length)
Bulk input of a long array.
|
long[] |
Input.readLongs(int length)
Bulk input of a long array.
|
long[] |
UnsafeInput.readLongs(int length,
boolean optimizePositive)
Bulk input of a long array.
|
long[] |
Input.readLongs(int length,
boolean optimizePositive)
Bulk input of a long array.
|
long[] |
UnsafeMemoryInput.readLongs(int length,
boolean optimizePositive)
Bulk input of a long array.
|
short |
ByteBufferInput.readShort()
Reads a 2 byte short.
|
short |
UnsafeInput.readShort()
Reads a 2 byte short.
|
short |
Input.readShort()
Reads a 2 byte short.
|
short |
UnsafeMemoryInput.readShort()
Reads a 2 byte short.
|
short[] |
ByteBufferInput.readShorts(int length)
Bulk input of a short array.
|
short[] |
UnsafeInput.readShorts(int length)
Bulk input of a short array.
|
short[] |
Input.readShorts(int length)
Bulk input of a short array.
|
short[] |
UnsafeMemoryInput.readShorts(int length)
Bulk input of a short array.
|
int |
ByteBufferInput.readShortUnsigned()
Reads a 2 byte short as an int from 0 to 65535.
|
int |
Input.readShortUnsigned()
Reads a 2 byte short as an int from 0 to 65535.
|
int |
ByteBufferInput.readVarInt(boolean optimizePositive) |
int |
Input.readVarInt(boolean optimizePositive)
Reads a 1-5 byte int.
|
long |
ByteBufferInput.readVarLong(boolean optimizePositive)
Reads a 1-9 byte long.
|
long |
Input.readVarLong(boolean optimizePositive)
Reads a 1-9 byte long.
|
protected boolean |
ByteBufferOutput.require(int required) |
protected int |
ByteBufferInput.require(int required) |
protected boolean |
Output.require(int required) |
protected int |
Input.require(int required) |
void |
ByteBufferInput.skip(int count) |
void |
Input.skip(int count)
Discards the specified number of bytes.
|
long |
ByteBufferInput.skip(long count)
Discards the specified number of bytes.
|
long |
Input.skip(long count)
Discards the specified number of bytes.
|
void |
ByteBufferOutput.write(byte[] bytes)
Writes the bytes.
|
void |
Output.write(byte[] bytes)
Writes the bytes.
|
void |
ByteBufferOutput.write(byte[] bytes,
int offset,
int length)
Writes the bytes.
|
void |
Output.write(byte[] bytes,
int offset,
int length)
Writes the bytes.
|
void |
ByteBufferOutput.write(int value)
Writes a byte.
|
void |
Output.write(int value)
Writes a byte.
|
void |
ByteBufferOutput.writeAscii(String value)
Writes a string that is known to contain only ASCII characters.
|
void |
Output.writeAscii(String value)
Writes a string that is known to contain only ASCII characters.
|
void |
ByteBufferOutput.writeBoolean(boolean value)
Writes a 1 byte boolean.
|
void |
UnsafeMemoryOutput.writeBoolean(boolean value)
Writes a 1 byte boolean.
|
void |
Output.writeBoolean(boolean value)
Writes a 1 byte boolean.
|
void |
ByteBufferOutput.writeByte(byte value) |
void |
UnsafeMemoryOutput.writeByte(byte value) |
void |
Output.writeByte(byte value) |
void |
ByteBufferOutput.writeByte(int value) |
void |
UnsafeMemoryOutput.writeByte(int value) |
void |
Output.writeByte(int value) |
void |
ByteBufferOutput.writeBytes(byte[] bytes)
Writes the bytes.
|
void |
UnsafeMemoryOutput.writeBytes(byte[] bytes)
Writes the bytes.
|
void |
Output.writeBytes(byte[] bytes)
Writes the bytes.
|
void |
ByteBufferOutput.writeBytes(byte[] bytes,
int offset,
int count)
Writes the bytes.
|
void |
Output.writeBytes(byte[] bytes,
int offset,
int count)
Writes the bytes.
|
void |
UnsafeMemoryOutput.writeBytes(Object obj,
long offset,
long count)
Output count bytes from a memory region starting at the given #{offset} inside the in-memory representation of obj object.
|
void |
UnsafeOutput.writeBytes(Object obj,
long offset,
long count)
Output count bytes from a memory region starting at the given #{offset} inside the in-memory representation of obj object.
|
void |
ByteBufferOutput.writeChar(char value)
Writes a 2 byte char.
|
void |
UnsafeMemoryOutput.writeChar(char value)
Writes a 2 byte char.
|
void |
UnsafeOutput.writeChar(char value)
Writes a 2 byte char.
|
void |
Output.writeChar(char value)
Writes a 2 byte char.
|
void |
ByteBufferOutput.writeChars(char[] object)
Bulk output of a char array.
|
void |
UnsafeMemoryOutput.writeChars(char[] object) |
void |
UnsafeOutput.writeChars(char[] object) |
void |
Output.writeChars(char[] object)
Bulk output of a char array.
|
void |
ByteBufferOutput.writeDouble(double value)
Writes an 8 byte double.
|
void |
UnsafeMemoryOutput.writeDouble(double value)
Writes an 8 byte double.
|
void |
UnsafeOutput.writeDouble(double value)
Writes an 8 byte double.
|
void |
Output.writeDouble(double value)
Writes an 8 byte double.
|
int |
ByteBufferOutput.writeDouble(double value,
double precision,
boolean optimizePositive)
Writes a 1-9 byte double with reduced precision.
|
int |
Output.writeDouble(double value,
double precision,
boolean optimizePositive)
Writes a 1-9 byte double with reduced precision.
|
void |
ByteBufferOutput.writeDoubles(double[] object)
Bulk output of a double array.
|
void |
UnsafeMemoryOutput.writeDoubles(double[] object) |
void |
UnsafeOutput.writeDoubles(double[] object) |
void |
Output.writeDoubles(double[] object)
Bulk output of a double array.
|
void |
ByteBufferOutput.writeFloat(float value)
Writes a 4 byte float.
|
void |
UnsafeMemoryOutput.writeFloat(float value)
Writes a 4 byte float.
|
void |
UnsafeOutput.writeFloat(float value)
Writes a 4 byte float.
|
void |
Output.writeFloat(float value)
Writes a 4 byte float.
|
int |
ByteBufferOutput.writeFloat(float value,
float precision,
boolean optimizePositive)
Writes a 1-5 byte float with reduced precision.
|
int |
Output.writeFloat(float value,
float precision,
boolean optimizePositive)
Writes a 1-5 byte float with reduced precision.
|
void |
ByteBufferOutput.writeFloats(float[] object)
Bulk output of a float array.
|
void |
UnsafeMemoryOutput.writeFloats(float[] object) |
void |
UnsafeOutput.writeFloats(float[] object) |
void |
Output.writeFloats(float[] object)
Bulk output of a float array.
|
void |
ByteBufferOutput.writeInt(int value)
Writes a 4 byte int.
|
void |
UnsafeMemoryOutput.writeInt(int value)
Writes a 4 byte int.
|
void |
UnsafeOutput.writeInt(int value)
Writes a 4 byte int.
|
void |
Output.writeInt(int value)
Writes a 4 byte int.
|
int |
ByteBufferOutput.writeInt(int value,
boolean optimizePositive) |
int |
UnsafeMemoryOutput.writeInt(int value,
boolean optimizePositive) |
int |
FastOutput.writeInt(int value,
boolean optimizePositive) |
int |
UnsafeOutput.writeInt(int value,
boolean optimizePositive) |
int |
Output.writeInt(int value,
boolean optimizePositive)
Writes a 1-5 byte int.
|
void |
ByteBufferOutput.writeInts(int[] object)
Bulk output of an int array.
|
void |
UnsafeMemoryOutput.writeInts(int[] object) |
void |
UnsafeOutput.writeInts(int[] object) |
void |
Output.writeInts(int[] object)
Bulk output of an int array.
|
void |
UnsafeMemoryOutput.writeInts(int[] object,
boolean optimizePositive) |
void |
UnsafeOutput.writeInts(int[] object,
boolean optimizePositive) |
void |
Output.writeInts(int[] object,
boolean optimizePositive)
Bulk output of an int array.
|
void |
ByteBufferOutput.writeLong(long value)
Writes an 8 byte long.
|
void |
UnsafeMemoryOutput.writeLong(long value)
Writes an 8 byte long.
|
void |
UnsafeOutput.writeLong(long value)
Writes an 8 byte long.
|
void |
Output.writeLong(long value)
Writes an 8 byte long.
|
int |
ByteBufferOutput.writeLong(long value,
boolean optimizePositive) |
int |
UnsafeMemoryOutput.writeLong(long value,
boolean optimizePositive) |
int |
FastOutput.writeLong(long value,
boolean optimizePositive) |
int |
UnsafeOutput.writeLong(long value,
boolean optimizePositive) |
int |
Output.writeLong(long value,
boolean optimizePositive)
Writes a 1-9 byte long.
|
void |
ByteBufferOutput.writeLongs(long[] object)
Bulk output of an long array.
|
void |
UnsafeMemoryOutput.writeLongs(long[] object) |
void |
UnsafeOutput.writeLongs(long[] object) |
void |
Output.writeLongs(long[] object)
Bulk output of an long array.
|
void |
UnsafeMemoryOutput.writeLongs(long[] object,
boolean optimizePositive) |
void |
UnsafeOutput.writeLongs(long[] object,
boolean optimizePositive) |
void |
Output.writeLongs(long[] object,
boolean optimizePositive)
Bulk output of an long array.
|
int |
ByteBufferOutput.writeLongS(long value,
boolean optimizePositive)
Writes a 1-9 byte long.
|
void |
ByteBufferOutput.writeShort(int value)
Writes a 2 byte short.
|
void |
UnsafeMemoryOutput.writeShort(int value)
Writes a 2 byte short.
|
void |
UnsafeOutput.writeShort(int value)
Writes a 2 byte short.
|
void |
Output.writeShort(int value)
Writes a 2 byte short.
|
void |
ByteBufferOutput.writeShorts(short[] object)
Bulk output of a short array.
|
void |
UnsafeMemoryOutput.writeShorts(short[] object) |
void |
UnsafeOutput.writeShorts(short[] object) |
void |
Output.writeShorts(short[] object)
Bulk output of a short array.
|
void |
ByteBufferOutput.writeString(CharSequence value)
Writes the length and CharSequence as UTF8, or null.
|
void |
Output.writeString(CharSequence value)
Writes the length and CharSequence as UTF8, or null.
|
void |
ByteBufferOutput.writeString(String value)
Writes the length and string, or null.
|
void |
Output.writeString(String value)
Writes the length and string, or null.
|
int |
ByteBufferOutput.writeVarInt(int val,
boolean optimizePositive) |
int |
UnsafeMemoryOutput.writeVarInt(int val,
boolean optimizePositive) |
int |
UnsafeOutput.writeVarInt(int val,
boolean optimizePositive) |
int |
Output.writeVarInt(int value,
boolean optimizePositive)
Writes a 1-5 byte int.
|
int |
ByteBufferOutput.writeVarLong(long value,
boolean optimizePositive) |
int |
UnsafeMemoryOutput.writeVarLong(long value,
boolean optimizePositive) |
int |
UnsafeOutput.writeVarLong(long value,
boolean optimizePositive) |
int |
Output.writeVarLong(long value,
boolean optimizePositive)
Writes a 1-9 byte long.
|
Copyright © 2018. All rights reserved.