/// <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); }
/// <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; }
/// <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; }
/// <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); }
public UnregisteredIpcMsg(uint reqId, IntPtr serialisedCfgPtr, UIntPtr serialisedCfgLen) { ReqId = reqId; SerialisedCfg = BindingUtils.CopyToByteList(serialisedCfgPtr, (int)serialisedCfgLen); }
/// <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); }