-
Notifications
You must be signed in to change notification settings - Fork 185
BufferList Class Reference
An AV.BufferList
is, as its name implies, a list of AV.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 AV.BufferList
s directly very often.
Creates a new AV.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 AV.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.