-
Notifications
You must be signed in to change notification settings - Fork 147
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.BufferLists directly very often.
Creates a new AV.BufferList with no data.
The current total length of the buffer list.
The current number of buffers in the list.
The total number of buffers in the list.
The current first buffer in the list, or the head.
The last buffer in the list, or the tail.
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, availableBuffers, and numBuffers.
Advances the buffer list by one buffer, shifting off list.first and replacing it with the next buffer in the list. Returns a boolean indicating whether or not advancing was successful, e.g. if there was a buffer to advance to.
Rewinds the buffer list by one buffer, replacing list.first with the previous buffer in the list. Returns a boolean indicating whether or not rewinding was successful, e.g. if there was a buffer to rewind to.
Rewinds the buffer list to the beginning.