public MessagePackReader(ReadOnlySpan <byte> buffer) { _currentSpanIndex = 0; _currentSpan = buffer; _isSingleSegment = true; _sequenceWrapper = SequenceWrapper.Default; }
public MessagePackReader(ReadOnlySequence <byte> buffer) { _currentSpanIndex = 0; _currentSpan = default; _isSingleSegment = buffer.IsSingleSegment; _sequenceWrapper = new SequenceWrapper(buffer); _sequenceWrapper.Init(ref this); }