Buffer v0.2.0 Buffer behaviour View Source
Behaviour for Buffer
Link to this section Summary
Callbacks
Creates a new emtpy buffer
Pops count
items from the buffer. Returns {items, buffer}
. If there are less than count
items in the buffer all items are popped.
Pushes items into the buffer and returns the buffer
Returns the number of items in the buffer
Link to this section Types
An item in a buffer
Link to this section Callbacks
Creates a new emtpy buffer
Pops count
items from the buffer. Returns {items, buffer}
. If there are less than count
items in the buffer all items are popped.
Pushes items into the buffer and returns the buffer
Returns the number of items in the buffer