class NetStreamSender.DefaultPacker extends NetStreamPacker
Modifier and Type | Field and Description |
---|---|
(package private) ByteBuffer |
sizeBuffer |
Constructor and Description |
---|
DefaultPacker() |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
packMessage(ByteBuffer buffer,
int startIndex,
int endIndex)
Pack the given ByteBuffer from startIndex to endIdex
|
ByteBuffer |
packMessageSize(int capacity) |
packMessage
ByteBuffer sizeBuffer
DefaultPacker()
public ByteBuffer packMessage(ByteBuffer buffer, int startIndex, int endIndex)
NetStreamPacker
packMessage
in class NetStreamPacker
buffer
- The buffer to pack/encodestartIndex
- the index at which the encoding starts in the bufferendIndex
- the index at which the encoding stopspublic ByteBuffer packMessageSize(int capacity)
packMessageSize
in class NetStreamPacker
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses