Package ai.chalk.internal.bytes
Class BytesConsumer
java.lang.Object
ai.chalk.internal.bytes.BytesConsumer
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BytesConsumer.ConsumptionResult<Long>consume8ByteLen(int startIdx, byte[] bytes) static byte[]intToEightBytes(int value) unmarshal(byte[] body)
-
Constructor Details
-
BytesConsumer
public BytesConsumer()
-
-
Method Details
-
intToEightBytes
public static byte[] intToEightBytes(int value) -
consume8ByteLen
public static BytesConsumer.ConsumptionResult<Long> consume8ByteLen(int startIdx, byte[] bytes) throws Exception - Throws:
Exception
-
unmarshal
- Throws:
Exception
-