Skip to content

JournalBufferReader.TryReadTo(ArcBuffer, byte, bool)

TryReadTo(ArcBuffer, byte, bool)

View source
public bool TryReadTo(out ArcBuffer slice, byte delimiter, bool advancePastDelimiter = true)
Reads bytes until delimiter is found.

Parameters

sliceArcBuffer
The pinned bytes before the delimiter, if it was found. The caller owns the returned buffer and must dispose it.
delimiterbyte
The delimiter to search for.
advancePastDelimiterbool
Whether to advance past the delimiter when it is found.

Returns

true if the delimiter was found; otherwise, false.