コード例 #1
0
 internal MDataValueNative ToNative()
 {
     return(new MDataValueNative {
         ContentPtr = BindingUtils.CopyFromByteList(Content),
         ContentLen = (UIntPtr)(Content?.Count ?? 0),
         EntryVersion = EntryVersion
     });
 }
コード例 #2
0
 internal AuthGrantedNative ToNative()
 {
     return(new AuthGrantedNative {
         AppKeys = AppKeys,
         AccessContainerInfo = AccessContainerInfo,
         AccessContainerEntry = AccessContainerEntry.ToNative(),
         BootstrapConfigPtr = BindingUtils.CopyFromByteList(BootstrapConfig),
         BootstrapConfigLen = (UIntPtr)(BootstrapConfig?.Count ?? 0),
         BootstrapConfigCap = UIntPtr.Zero
     });
 }
コード例 #3
0
 internal FileNative ToNative()
 {
     return(new FileNative {
         Size = Size,
         CreatedSec = CreatedSec,
         CreatedNsec = CreatedNsec,
         ModifiedSec = ModifiedSec,
         ModifiedNsec = ModifiedNsec,
         UserMetadataPtr = BindingUtils.CopyFromByteList(UserMetadata),
         UserMetadataLen = (UIntPtr)(UserMetadata?.Count ?? 0),
         UserMetadataCap = UIntPtr.Zero,
         DataMapName = DataMapName
     });
 }
コード例 #4
0
 /// <summary>
 /// Returns a native mutable data key.
 /// </summary>
 /// <returns></returns>
 internal MDataKeyNative ToNative()
 {
     return(new MDataKeyNative {
         ValPtr = BindingUtils.CopyFromByteList(Val), ValLen = (UIntPtr)(Val?.Count ?? 0)
     });
 }
コード例 #5
0
 /// <summary>
 /// Returns a native Mutable Data key.
 /// </summary>
 /// <returns></returns>
 internal MDataKeyNative ToNative()
 {
     return(new MDataKeyNative {
         KeyPtr = BindingUtils.CopyFromByteList(Key), KeyLen = (UIntPtr)(Key?.Count ?? 0)
     });
 }