Exemple #1
0
 public MDataKeyNative ToNative()
 {
     return(new MDataKeyNative()
     {
         KeyPtr = BindingUtils.CopyFromByteList(Key),
         KeyLen = (UIntPtr)(Key?.Count ?? 0)
     });
 }
Exemple #2
0
 public MDataValueNative ToNative()
 {
     return(new MDataValueNative()
     {
         ContentPtr = BindingUtils.CopyFromByteList(Content),
         ContentLen = (UIntPtr)(Content?.Count ?? 0),
         EntryVersion = EntryVersion
     });
 }
Exemple #3
0
 public AuthGrantedNative ToNative()
 {
     return(new AuthGrantedNative()
     {
         AppKeys = AppKeys,
         AccessContainerInfo = AccessContainerInfo,
         AccessContainerEntry = AccessContainerEntry.ToNative(),
         BootstrapConfigPtr = BindingUtils.CopyFromByteList(BootstrapConfig),
         BootstrapConfigLen = (UIntPtr)(BootstrapConfig?.Count ?? 0),
         BootstrapConfigCap = UIntPtr.Zero
     });
 }
Exemple #4
0
 public 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
     });
 }