Class Bytes

java.lang.Object
it.auties.whatsapp.util.Bytes

public final class Bytes extends Object
  • Field Details

  • Constructor Details

    • Bytes

      public Bytes()
  • Method Details

    • random

      public static byte random()
    • random

      public static byte[] random(int length)
    • reversedConcat

      public static byte[] reversedConcat(byte[][] entries)
    • concat

      public static byte[] concat(byte[]... entries)
    • concat

      public static byte[] concat(byte first, byte[] second)
    • concat

      public static byte[] concat(byte[] first, byte[] second)
    • versionToBytes

      public static byte versionToBytes(int version)
    • bytesToVersion

      public static int bytesToVersion(byte version)
    • compress

      public static byte[] compress(byte[] uncompressed)
    • decompress

      public static byte[] decompress(byte[] compressed)
    • decompress

      public static byte[] decompress(byte[] compressed, int offset, int length)
    • messageToBytes

      public static byte[] messageToBytes(Message message)
    • messageToBytes

      public static byte[] messageToBytes(MessageContainer container)
    • bytesToMessage

      public static MessageContainer bytesToMessage(byte[] bytes)
    • longToBytes

      public static byte[] longToBytes(long number)
    • intToBytes

      public static byte[] intToBytes(int input, int length)
    • bytesToInt

      public static int bytesToInt(byte[] bytes, int length)
    • bytesToCrockford

      public static String bytesToCrockford(byte[] bytes)
    • intToVarInt

      public static byte[] intToVarInt(int value)