Package io.zeebe.msgpack.util
Class ByteUtil
- java.lang.Object
-
- io.zeebe.msgpack.util.ByteUtil
-
public final class ByteUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description ByteUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringbytesToBinary(byte[] bytes)static booleanequal(byte[] arr1, org.agrona.DirectBuffer buf2, int buf2Offset, int length)static booleanequal(org.agrona.DirectBuffer buf1, int buf1Offset, int buf1Length, org.agrona.DirectBuffer buf2, int buf2Offset, int buf2Length)static booleanisNumeric(org.agrona.DirectBuffer buffer, int offset, int length)with respect to utf8static intparseInteger(org.agrona.DirectBuffer buffer, int offset, int length)With respect to utf8.
-
-
-
Method Detail
-
equal
public static boolean equal(byte[] arr1, org.agrona.DirectBuffer buf2, int buf2Offset, int length)
-
equal
public static boolean equal(org.agrona.DirectBuffer buf1, int buf1Offset, int buf1Length, org.agrona.DirectBuffer buf2, int buf2Offset, int buf2Length)
-
bytesToBinary
public static String bytesToBinary(byte[] bytes)
-
isNumeric
public static boolean isNumeric(org.agrona.DirectBuffer buffer, int offset, int length)with respect to utf8
-
parseInteger
public static int parseInteger(org.agrona.DirectBuffer buffer, int offset, int length)With respect to utf8. AssumingisNumeric(DirectBuffer, int, int)returns true for this buffer portion.
-
-