Create a new BodyChunk from a ByteBuffer
Create a new BodyChunk from a ByteBuffer
ByteBuffer containing the Bytes to copy into a BodyChunk
The ByteBuffer position will be set to the end of the buffer
Create a new BodyChunk from the provided Bytes
Create a new BodyChunk with a copy of the provided Array[Byte]
Create a new BodyChunk with a copy of the provided Array[Byte]
array of bytes to form the BodyChunk
starting position in the Array
number of Bytes desired
Create a new BodyChunk with a copy of the provided Array[Byte]
Create a new BodyChunk with a copy of the provided Array[Byte]
array of bytes for the BodyChunk
Empty BodyChunk
Construct and unsafe BodyChunk from the array The array is not copied, and therefor any changes will result in changes to the resulting BodyChunk! If this is not the desired behavior, use BodyChunk.
Construct and unsafe BodyChunk from the array The array is not copied, and therefor any changes will result in changes to the resulting BodyChunk! If this is not the desired behavior, use BodyChunk.apply to safely copy the array first