Beispiel #1
0
 public MessagePackReader(ReadOnlySpan <byte> buffer)
 {
     _currentSpanIndex = 0;
     _currentSpan      = buffer;
     _isSingleSegment  = true;
     _sequenceWrapper  = SequenceWrapper.Default;
 }
Beispiel #2
0
        public MessagePackReader(ReadOnlySequence <byte> buffer)
        {
            _currentSpanIndex = 0;
            _currentSpan      = default;
            _isSingleSegment  = buffer.IsSingleSegment;

            _sequenceWrapper = new SequenceWrapper(buffer);

            _sequenceWrapper.Init(ref this);
        }