/// <summary> /// Creates a new object that is not owned by any other object. The specified /// |data| will be copied. /// </summary> /// <remarks> /// See also the original CEF documentation in /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_values_capi.h">cef/include/capi/cef_values_capi.h</see>. /// </remarks> public static CfrBinaryValue Create(RemotePtr data, ulong dataSize) { var call = new CfxBinaryValueCreateRemoteCall(); call.data = data.ptr; call.dataSize = dataSize; call.RequestExecution(); return(CfrBinaryValue.Wrap(new RemotePtr(call.__retval))); }
/// <summary> /// Creates a new object that is not owned by any other object. The specified /// |data| will be copied. /// </summary> /// <remarks> /// See also the original CEF documentation in /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_values_capi.h">cef/include/capi/cef_values_capi.h</see>. /// </remarks> public static CfrBinaryValue Create(RemotePtr data, ulong dataSize) { var connection = CfxRemoteCallContext.CurrentContext.connection; var call = new CfxBinaryValueCreateRemoteCall(); if (data.connection != connection) { throw new ArgumentException("Render process connection mismatch.", "data"); } call.data = data.ptr; call.dataSize = dataSize; call.RequestExecution(connection); return(CfrBinaryValue.Wrap(new RemotePtr(connection, call.__retval))); }