ByteIterator
scoped struct ByteIteratorimport ByteIterator from Wax;A scoped iterator over UTF-8 bytes. It borrows its byte storage; use HasNext before
MoveNext, or consume it through iteration syntax.
Members
constructorconstructor
public constructor (ReadOnlySpan<uint8> bytes)Creates an iterator over the supplied byte view without copying. Character and grapheme iteration expects UTF-8 input.
HasNextmethod
public fn HasNext() : boolReturns whether another element remains without consuming it.
MoveNextmethod
public fn MoveNext() : uint8Returns the next byte and advances. Calling after exhaustion panics.
ToStringmethod
public fn ToString() : stringProvided by the compiler.
ToStringBuffermethod
public fn ToStringBuffer(StringBuilder builder) : int32Provided by the compiler.