コード例 #1
0
 /// <summary>
 /// Initialise a new auth response object from native auth response.
 /// </summary>
 /// <param name="native"></param>
 internal AuthGranted(AuthGrantedNative native)
 {
     AppKeys              = native.AppKeys;
     AccessContainerInfo  = native.AccessContainerInfo;
     AccessContainerEntry = new AccessContainerEntry(native.AccessContainerEntry);
     BootstrapConfig      = BindingUtils.CopyToByteList(native.BootstrapConfigPtr, (int)native.BootstrapConfigLen);
 }
コード例 #2
0
 /// <summary>
 /// Initialise a new file object from native NFS file.
 /// </summary>
 /// <param name="native"></param>
 internal File(FileNative native)
 {
     Size         = native.Size;
     CreatedSec   = native.CreatedSec;
     CreatedNsec  = native.CreatedNsec;
     ModifiedSec  = native.ModifiedSec;
     ModifiedNsec = native.ModifiedNsec;
     UserMetadata = BindingUtils.CopyToByteList(native.UserMetadataPtr, (int)native.UserMetadataLen);
     DataMapName  = native.DataMapName;
 }
コード例 #3
0
 /// <summary>
 /// Initialise new mutable data value
 /// </summary>
 /// <param name="native"></param>
 internal MDataValue(MDataValueNative native)
 {
     Content      = BindingUtils.CopyToByteList(native.ContentPtr, (int)native.ContentLen);
     EntryVersion = native.EntryVersion;
 }
コード例 #4
0
 /// <summary>
 /// Initialise new mutable data key from native key.
 /// </summary>
 /// <param name="native"></param>
 internal MDataKey(MDataKeyNative native)
 {
     Val = BindingUtils.CopyToByteList(native.ValPtr, (int)native.ValLen);
 }
コード例 #5
0
 public UnregisteredIpcMsg(uint reqId, IntPtr serialisedCfgPtr, UIntPtr serialisedCfgLen)
 {
     ReqId         = reqId;
     SerialisedCfg = BindingUtils.CopyToByteList(serialisedCfgPtr, (int)serialisedCfgLen);
 }
コード例 #6
0
 /// <summary>
 /// Initialise new Mutable Data key from native key.
 /// </summary>
 /// <param name="native"></param>
 internal MDataKey(MDataKeyNative native)
 {
     Key = BindingUtils.CopyToByteList(native.KeyPtr, (int)native.KeyLen);
 }