Class ByteKit

java.lang.Object
com.iohao.net.common.kit.ByteKit

public class ByteKit extends Object
ByteKit
Since:
21.15
Author:
渔民小镇
date:
2024-08-10
  • Constructor Details

    • ByteKit

      public ByteKit()
  • Method Details

    • toBytes

      public byte[] toBytes(long value)
    • getLong

      public long getLong(byte[] array)
    • toBytes

      public byte[] toBytes(int value)
    • getInt

      public int getInt(byte[] array)
    • toBytes

      public byte[] toBytes(boolean value)
    • getBoolean

      public boolean getBoolean(byte[] array)
    • toBytes

      public byte[] toBytes(String value)
    • getString

      public String getString(byte[] array)
    • getPayload

      public byte[] getPayload(byte[] payload, int payloadLength)
    • getBytes

      public static byte[] getBytes(byte[] data)
    • ofBytes

      public static byte[] ofBytes(int length)