https://learn.microsoft.com/en-us/dotnet/api/system.buffers.readonlysequence-1.getoffset?view=net-6.0
ReadOnlySequenceT.GetOffset(SequencePosition) Method (System.Buffers) | Microsoft Learn
Returns the offset of a position within this sequence.
getoffsetmethodsystembuffersmicrosoft