Package io.protostuff
Class IntSerializer
- java.lang.Object
-
- io.protostuff.IntSerializer
-
public final class IntSerializer extends java.lang.ObjectInt32/Int64 serialization
-
-
Constructor Summary
Constructors Modifier Constructor Description privateIntSerializer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidwriteInt16(int value, byte[] buffer, int offset)Writes the 16-bit int into the buffer starting with the most significant byte.static voidwriteInt16LE(int value, byte[] buffer, int offset)Writes the 16-bit int into the buffer starting with the least significant byte.static voidwriteInt16LE(int value, java.nio.ByteBuffer buffer)static voidwriteInt32(int value, byte[] buffer, int offset)Writes the 32-bit int into the buffer starting with the most significant byte.static voidwriteInt32LE(int value, byte[] buffer, int offset)Writes the 32-bit int into the buffer starting with the least significant byte.static voidwriteInt32LE(int value, java.nio.ByteBuffer buffer)static voidwriteInt64(long value, byte[] buffer, int offset)Writes the 64-bit int into the buffer starting with the most significant byte.static voidwriteInt64LE(long value, byte[] buffer, int offset)Writes the 64-bit int into the buffer starting with the least significant byte.static voidwriteInt64LE(long value, java.nio.ByteBuffer buffer)
-
-
-
Method Detail
-
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
public static void writeInt16LE(int value, java.nio.ByteBuffer buffer)
-
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
public static void writeInt32LE(int value, java.nio.ByteBuffer buffer)
-
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
public static void writeInt64LE(long value, java.nio.ByteBuffer buffer)
-
-