Class BinaryOutputUtils

java.lang.Object
io.activej.serializer.util.BinaryOutputUtils

public final class BinaryOutputUtils extends Object
Provides methods for writing primitives and Strings to byte arrays
  • 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

      public static int writeIso88591(byte[] buf, int off, String s)
    • writeIso88591Nullable

      public static int writeIso88591Nullable(byte[] buf, int off, String s)
    • writeUTF8

      public static int writeUTF8(byte[] buf, int off, String s)
    • writeUTF8Nullable

      public static int writeUTF8Nullable(byte[] buf, int off, String s)
    • writeUTF8mb3

      @Deprecated public static int writeUTF8mb3(byte[] buf, int off, String s)
      Deprecated.
    • writeUTF8mb3Nullable

      @Deprecated public static int writeUTF8mb3Nullable(byte[] buf, int off, String s)
      Deprecated.
    • writeUTF16

      public static int writeUTF16(byte[] buf, int off, String s)
    • writeUTF16LE

      public static int writeUTF16LE(byte[] buf, int off, String s)
    • writeUTF16Nullable

      public static int writeUTF16Nullable(byte[] buf, int off, String s)
    • writeUTF16NullableLE

      public static int writeUTF16NullableLE(byte[] buf, int off, String s)