Utf8String.SpanEnumerator
Namespace: SnowBank.Buffers.Text · struct
Implements: IEnumerator<UnicodeCodePoint>, IEnumerator, IDisposable
Enumerator that lists all the UnicodeCodePoint in a Utf8String
Properties
ByteOffset
int ByteOffset { get; }
Current offset in the UTF-8 buffer
ByteRemaining
int ByteRemaining { get; }
Number of bytes remaining in the UTF-8 buffer
Current
UnicodeCodePoint Current { get; }
Methods
GetBuffer
ReadOnlySpan<byte> GetBuffer()
UTF-8 buffer of the string
MoveNext
bool MoveNext()
Reset
void Reset()