-
Notifications
You must be signed in to change notification settings - Fork 147
BufferList Class Reference
A BufferList is, as its name implies, a list of Buffer objects. It manages the current total length of the list and is used by the Stream class internally. When using Aurora, you won't deal with BufferLists directly very often.
Creates a new BufferList with no data.
The current total length of the buffer list.
The number of buffers in the list.
The first buffer in the list.
Returns a copy of the buffer list with a shallow copy of the buffers. Modifying the buffers in the cloned BufferList will modify the buffers in the original BufferList.
Adds a buffer to the end of the buffer list. Updates availableBytes and availableBuffers.
Adds a buffer to the beginning of the buffer list. Updates availableBytes and availableBuffers.
Removes and returns the first buffer in the list, updating availableBytes and availableBuffers accordingly.