Package gc.garcol.libcore
Class ByteBufferUtil
java.lang.Object
gc.garcol.libcore.ByteBufferUtil
Utility class for working with ByteBuffers.
- Since:
- 2024
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidput(ByteBuffer buffer, int bufferIndex, byte[] src) Puts the given byte array into the specified ByteBuffer at the given index.
-
Method Details
-
put
Puts the given byte array into the specified ByteBuffer at the given index. Updates the buffer's position to the end of the inserted data.- Parameters:
buffer- the ByteBuffer to put the byte array intobufferIndex- the index in the buffer to start putting the byte arraysrc- the byte array to put into the buffer
-