Skip to content

BufferIterator


final class BufferIterator(buffer:Buffer) < Iterator<Buffer>

Iterator over the contents of a Buffer that represents an array (in the JSON sense).

  • buffer: Buffer.

Factory Functions

Name Description
BufferIterator Create a BufferIterator.

Member Variables

Name Description
buffer:Buffer Buffer.
i:Integer Current index into the elements of the buffer.

Member Functions

Name Description
hasNext Is there a next element?
next Get the next element.

Factory Function Details

function BufferIterator(buffer:Buffer) -> BufferIterator

Create a BufferIterator.

Member Function Details

hasNext

function hasNext() -> Boolean

Is there a next element?

next

function next() -> Buffer

Get the next element.