Package io.activej.serializer.util
Class BinaryOutputUtils
java.lang.Object
io.activej.serializer.util.BinaryOutputUtils
Provides methods for writing primitives
and Strings to byte arrays
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intwrite(byte[] buf, int off, byte[] bytes) static intwrite(byte[] buf, int off, byte[] bytes, int bytesOff, int len) static intwriteBoolean(byte[] buf, int off, boolean v) static intwriteByte(byte[] buf, int off, byte v) static intwriteChar(byte[] buf, int off, char v) static intwriteCharLE(byte[] buf, int off, char v) static intwriteDouble(byte[] buf, int off, double v) static intwriteFloat(byte[] buf, int off, float v) static intwriteInt(byte[] buf, int off, int v) static intwriteIntLE(byte[] buf, int off, int v) static intwriteIso88591(byte[] buf, int off, String s) static intwriteIso88591Nullable(byte[] buf, int off, String s) static intwriteLong(byte[] buf, int off, long v) static intwriteLongLE(byte[] buf, int off, long v) static intwriteShort(byte[] buf, int off, short v) static intwriteShortLE(byte[] buf, int off, short v) static intwriteUTF16(byte[] buf, int off, String s) static intwriteUTF16LE(byte[] buf, int off, String s) static intwriteUTF16Nullable(byte[] buf, int off, String s) static intwriteUTF16NullableLE(byte[] buf, int off, String s) static intstatic intwriteUTF8mb3(byte[] buf, int off, String s) Deprecated.static intwriteUTF8mb3Nullable(byte[] buf, int off, String s) Deprecated.static intwriteUTF8Nullable(byte[] buf, int off, String s) static intwriteVarInt(byte[] buf, int off, int v) static intwriteVarLong(byte[] buf, int off, long v)
-
Constructor Details
-
BinaryOutputUtils
public BinaryOutputUtils()
-
-
Method Details
-
write
public static int write(byte[] buf, int off, byte[] bytes) -
write
public static int write(byte[] buf, int off, byte[] bytes, int bytesOff, int len) -
writeBoolean
public static int writeBoolean(byte[] buf, int off, boolean v) -
writeByte
public static int writeByte(byte[] buf, int off, byte v) -
writeShort
public static int writeShort(byte[] buf, int off, short v) -
writeShortLE
public static int writeShortLE(byte[] buf, int off, short v) -
writeChar
public static int writeChar(byte[] buf, int off, char v) -
writeCharLE
public static int writeCharLE(byte[] buf, int off, char v) -
writeInt
public static int writeInt(byte[] buf, int off, int v) -
writeIntLE
public static int writeIntLE(byte[] buf, int off, int v) -
writeLong
public static int writeLong(byte[] buf, int off, long v) -
writeLongLE
public static int writeLongLE(byte[] buf, int off, long v) -
writeVarInt
public static int writeVarInt(byte[] buf, int off, int v) -
writeVarLong
public static int writeVarLong(byte[] buf, int off, long v) -
writeFloat
public static int writeFloat(byte[] buf, int off, float v) -
writeDouble
public static int writeDouble(byte[] buf, int off, double v) -
writeIso88591
-
writeIso88591Nullable
-
writeUTF8
-
writeUTF8Nullable
-
writeUTF8mb3
Deprecated. -
writeUTF8mb3Nullable
Deprecated. -
writeUTF16
-
writeUTF16LE
-
writeUTF16Nullable
-
writeUTF16NullableLE
-