Skip to content

MemoryEnumerator Methods

Enumerates over sequences of bytes in a PooledBuffer.

GetEnumerator

View source
public readonly MemoryEnumerator GetEnumerator()
Returns an enumerator which can be used to enumerate the data referenced by this instance.

Returns

An enumerator for the data contained in this instance.

MoveNext

View source
public bool MoveNext()
Advances the enumerator to the next element of the collection.

Returns

true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection.