ArrayPoolBuffer
A buffer that uses an array pool to store the characters.
Usage of this buffer assumes that the max capacity is known upfront
Maintains an append only contiguous chunk of characters.
Created StringOrMemory instances lifetime is tied to the buffer.
Works under assumption that the buffer will be disposed after use
and max capacity can't be larger than char count in the source.
A buffer that uses an array pool to store the characters.
Usage of this buffer assumes that the max capacity is known upfront
Maintains an append only contiguous chunk of characters.
Created StringOrMemory instances lifetime is tied to the buffer.
Works under assumption that the buffer will be disposed after use
and max capacity can't be larger than char count in the source.
public bool HasTextAt(ReadOnlySpan<char> test, int offset, int length, StringComparison comparison = 4)