public void Dispose() { if (bMarshalled) { Marshal.FreeHGlobal(data.Pointer); this = new SliceDataWrapper(); } }
public Slice(SliceData newData) { sliceWrapper = new SliceDataWrapper(); sliceWrapper.Set(newData.Pointer, (ulong)newData.Length, false); }