Package io.protostuff
Class IntSerializer
java.lang.Object
io.protostuff.IntSerializer
Int32/Int64 serialization
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
writeInt16
(int value, byte[] buffer, int offset) Writes the 16-bit int into the buffer starting with the most significant byte.static void
writeInt16LE
(int value, byte[] buffer, int offset) Writes the 16-bit int into the buffer starting with the least significant byte.static void
writeInt16LE
(int value, ByteBuffer buffer) static void
writeInt32
(int value, byte[] buffer, int offset) Writes the 32-bit int into the buffer starting with the most significant byte.static void
writeInt32LE
(int value, byte[] buffer, int offset) Writes the 32-bit int into the buffer starting with the least significant byte.static void
writeInt32LE
(int value, ByteBuffer buffer) static void
writeInt64
(long value, byte[] buffer, int offset) Writes the 64-bit int into the buffer starting with the most significant byte.static void
writeInt64LE
(long value, byte[] buffer, int offset) Writes the 64-bit int into the buffer starting with the least significant byte.static void
writeInt64LE
(long value, ByteBuffer buffer)
-
Constructor Details
-
IntSerializer
private IntSerializer()
-
-
Method Details
-
writeInt16
public static void writeInt16(int value, byte[] buffer, int offset) Writes the 16-bit int into the buffer starting with the most significant byte. -
writeInt16LE
public static void writeInt16LE(int value, byte[] buffer, int offset) Writes the 16-bit int into the buffer starting with the least significant byte. -
writeInt16LE
-
writeInt32
public static void writeInt32(int value, byte[] buffer, int offset) Writes the 32-bit int into the buffer starting with the most significant byte. -
writeInt32LE
public static void writeInt32LE(int value, byte[] buffer, int offset) Writes the 32-bit int into the buffer starting with the least significant byte. -
writeInt32LE
-
writeInt64
public static void writeInt64(long value, byte[] buffer, int offset) Writes the 64-bit int into the buffer starting with the most significant byte. -
writeInt64LE
public static void writeInt64LE(long value, byte[] buffer, int offset) Writes the 64-bit int into the buffer starting with the least significant byte. -
writeInt64LE
-