예제 #1
0
 public DataVar(int sizeInBytes)
 {
     data_buf_len = sizeInBytes;
     buf          = new byte[sizeInBytes];
     _handle      = GCHandle.Alloc(buf, GCHandleType.Pinned);
     //pBuffer = Marshal.UnsafeAddrOfPinnedArrayElement(buf, 0);
     pBuffer   = _handle.AddrOfPinnedObject();
     data_len  = 0;
     data_offt = 0;
     flag      = BangDBDataOpsFlag.FlagSetNone;
 }
예제 #2
0
 public void Reset()
 {
     data_len  = 0;
     data_offt = 0;
     flag      = BangDBDataOpsFlag.FlagSetNone;
 }