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; }
public void Reset() { data_len = 0; data_offt = 0; flag = BangDBDataOpsFlag.FlagSetNone; }