public override MemoryHandle Pin(int elementIndex = 0)
 {
     ThrowIfDisposed();
     return(new MemoryHandle((byte *)_view.DangerousGetHandle() + _offset, pinnable: this));
 }
示例#2
0
 public void Flush(IntPtr capacity)
 {
     MemoryMapImpl.Flush(m_viewHandle.DangerousGetHandle());
 }