protected internal override Span <byte> _GetSpan(int index, int count) { if (0u >= (uint)count) { return(Span <byte> .Empty); } switch (_componentCount) { case 0: return(Span <byte> .Empty); case 1: ComponentEntry c = _components[0]; return(c.Buffer.GetSpan(index, count)); default: var idx = ToComponentIndex0(index); if (idx == ToComponentIndex0(index + count - 1)) { ComponentEntry c1 = _components[idx]; return(c1.Buffer.GetSpan(c1.Idx(index), count)); } throw ThrowHelper.GetNotSupportedException(); } }
protected internal override Span <byte> _GetSpan(int index, int count) { if (0u >= (uint)count) { return(Span <byte> .Empty); } switch (_componentCount) { case 0: return(Span <byte> .Empty); case 1: ComponentEntry c = _components[0]; return(c.Buffer.GetSpan(index, count)); default: throw ThrowHelper.GetNotSupportedException(); } }
public IByteBuffer AdjustCapacity(int newCapacity) => throw ThrowHelper.GetNotSupportedException();
public ref byte GetPinnableMemoryAddress() => throw ThrowHelper.GetNotSupportedException();