public MDataKeyNative ToNative() { return(new MDataKeyNative() { KeyPtr = BindingUtils.CopyFromByteList(Key), KeyLen = (UIntPtr)(Key?.Count ?? 0) }); }
public MDataValueNative ToNative() { return(new MDataValueNative() { ContentPtr = BindingUtils.CopyFromByteList(Content), ContentLen = (UIntPtr)(Content?.Count ?? 0), EntryVersion = EntryVersion }); }
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 }); }
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 }); }