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