Lines Matching refs:Slice
241 … return MemoryMarshal.Cast<byte, T>(_buffer.ReadOnlySpan.Slice(pos)).Slice(0, len).ToArray();
267 return _buffer.ReadOnlyMemory.Slice(pos, len); in ToReadOnlyMemory()
272 return _buffer.Memory.Slice(pos, len); in ToMemory()
277 return _buffer.Span.Slice(pos, len); in ToSpan()
392 Span<byte> span = _buffer.Span.Slice(offset, count); in PutByte()
455 Span<byte> span = _buffer.Span.Slice(offset); in PutUshort()
476 Span<byte> span = _buffer.Span.Slice(offset); in PutUint()
497 Span<byte> span = _buffer.Span.Slice(offset); in PutUlong()
633 fixed (byte* buffer = &MemoryMarshal.GetReference(_buffer.ReadOnlySpan.Slice(startPos))) in GetStringUTF8()
656 ReadOnlySpan<byte> span = _buffer.ReadOnlySpan.Slice(offset); in GetUshort()
677 ReadOnlySpan<byte> span = _buffer.ReadOnlySpan.Slice(offset); in GetUint()
698 ReadOnlySpan<byte> span = _buffer.ReadOnlySpan.Slice(offset); in GetUlong()
836 MemoryMarshal.Cast<T, byte>(x).CopyTo(_buffer.Span.Slice(offset, numBytes));
875 MemoryMarshal.Cast<T, byte>(x).CopyTo(_buffer.Span.Slice(offset, numBytes));