示例#1
0
 public void Dispose()
 {
     if (m_nativeInstance != IntPtr.Zero)
     {
         DeviceAddressNative.Destroy(m_nativeInstance);
         m_nativeInstance = IntPtr.Zero;
     }
 }
示例#2
0
 public static bool operator !=(DeviceAddress lhs, DeviceAddress rhs)
 {
     return(!DeviceAddressNative.IsEquals(lhs.m_nativeInstance, rhs.m_nativeInstance));
 }
示例#3
0
 public DeviceAddress()
 {
     m_nativeInstance = DeviceAddressNative.Create();
 }
示例#4
0
 public byte Pop()
 {
     return(DeviceAddressNative.Pop(m_nativeInstance));
 }
示例#5
0
 public void Push(byte deviceId)
 {
     DeviceAddressNative.Push(m_nativeInstance, deviceId);
 }
示例#6
0
 public DeviceAddress(DeviceAddress copy)
 {
     m_nativeInstance = DeviceAddressNative.Duplicate(copy.NativeInstance);
 }