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