Ejemplo n.º 1
0
        /// <summary>
        /// Returns a copy of this object. The data in this object will also 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 CfrBinaryValue Copy()
        {
            var call = new CfxBinaryValueCopyRemoteCall();

            call.@this = RemotePtr.ptr;
            call.RequestExecution(RemotePtr.connection);
            return(CfrBinaryValue.Wrap(new RemotePtr(call.__retval)));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Creates a new object that is not owned by any other object. The specified
        /// |data| will be copied.
        /// </summary>
        public static CfrBinaryValue Create(byte[] data)
        {
            var call = new CfxBinaryValueCreateFromArrayRenderProcessCall();

            call.data = data;
            call.RequestExecution(CfxRemoteCallContext.CurrentContext.connection);
            return(CfrBinaryValue.Wrap(call.__retval));
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Creates a new object that is not owned by any other object. The specified
        /// |data| will be copied.
        /// </summary>
        public static CfrBinaryValue Create(byte[] data)
        {
            var call = new CfxBinaryValueCreateFromArrayRemoteCall();

            call.data = data;
            call.RequestExecution();
            return(CfrBinaryValue.Wrap(new RemotePtr(call.__retval)));
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Returns a copy of this object. The data in this object will also 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 CfrBinaryValue Copy()
        {
            var call = new CfxBinaryValueCopyRenderProcessCall();

            call.self = CfrObject.Unwrap(this);
            call.RequestExecution(this);
            return(CfrBinaryValue.Wrap(call.__retval));
        }
        /// <summary>
        /// Returns a copy of this object. The data in this object will also 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 CfrBinaryValue Copy()
        {
            var call = new CfxBinaryValueCopyRenderProcessCall();

            call.@this = proxyId;
            call.RequestExecution(this);
            return(CfrBinaryValue.Wrap(call.__retval));
        }
Ejemplo n.º 6
0
        /// <summary>
        /// Returns the value at the specified key as type binary. The returned value
        /// will reference existing data.
        /// </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 CfrBinaryValue GetBinary(string key)
        {
            var call = new CfxDictionaryValueGetBinaryRenderProcessCall();

            call.self = CfrObject.Unwrap(this);
            call.key  = key;
            call.RequestExecution(this);
            return(CfrBinaryValue.Wrap(call.__retval));
        }
Ejemplo n.º 7
0
        /// <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)));
        }
Ejemplo n.º 8
0
        /// <summary>
        /// Returns the value at the specified index as type binary. The returned value
        /// will reference existing data.
        /// </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 CfrBinaryValue GetBinary(int index)
        {
            var call = new CfxListValueGetBinaryRenderProcessCall();

            call.@this = proxyId;
            call.index = index;
            call.RequestExecution(this);
            return(CfrBinaryValue.Wrap(call.__retval));
        }
Ejemplo n.º 9
0
        /// <summary>
        /// Returns the value at the specified key as type binary. The returned value
        /// will reference existing data.
        /// </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 CfrBinaryValue GetBinary(string key)
        {
            var call = new CfxDictionaryValueGetBinaryRemoteCall();

            call.@this = RemotePtr.ptr;
            call.key   = key;
            call.RequestExecution(RemotePtr.connection);
            return(CfrBinaryValue.Wrap(new RemotePtr(call.__retval)));
        }
Ejemplo n.º 10
0
        /// <summary>
        /// Returns the value at the specified index as type binary. The returned value
        /// will reference existing data.
        /// </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 CfrBinaryValue GetBinary(ulong index)
        {
            var call = new CfxListValueGetBinaryRemoteCall();

            call.@this = RemotePtr.ptr;
            call.index = index;
            call.RequestExecution(RemotePtr.connection);
            return(CfrBinaryValue.Wrap(new RemotePtr(call.__retval)));
        }
Ejemplo n.º 11
0
        /// <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, int dataSize)
        {
            var call = new CfxBinaryValueCreateRenderProcessCall();

            call.data     = data.ptr;
            call.dataSize = dataSize;
            call.RequestExecution(CfxRemoteCallContext.CurrentContext.connection);
            return(CfrBinaryValue.Wrap(call.__retval));
        }
Ejemplo n.º 12
0
        /// <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)));
        }