コード例 #1
0
 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());
 }