public void Pull(string file) { unsafe { Native.Status *status = Native.Pull(parent_.GetHandle(), handle_.GetHandle(), file); if (status != null) { using (handles.StatusHandle handle = new handles.StatusHandle(status)) { throw new MatryoshkaException(handle); } } } }
public string GetMessage() { if (this.IsInvalid) { return(""); } unsafe { Native.Status *status_pointer = (Native.Status *) this.handle.ToPointer(); return(Marshal.PtrToStringAnsi(Native.GetMessage(status_pointer))); } }
public unsafe StatusHandle(Native.Status *status) : base(true) { this.SetHandle(new IntPtr((void *)status)); }