Esempio n. 1
0
        /// <summary>
        /// The post data element will represent bytes.  The bytes passed in 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_request_capi.h">cef/include/capi/cef_request_capi.h</see>.
        /// </remarks>
        public void SetToBytes(ulong size, RemotePtr bytes)
        {
            var call = new CfxPostDataElementSetToBytesRenderProcessCall();

            call.@this = proxyId;
            call.size  = size;
            call.bytes = bytes.ptr;
            call.RequestExecution(this);
        }
Esempio n. 2
0
        /// <summary>
        /// The post data element will represent bytes.  The bytes passed in 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_request_capi.h">cef/include/capi/cef_request_capi.h</see>.
        /// </remarks>
        public void SetToBytes(int size, RemotePtr bytes)
        {
            var call = new CfxPostDataElementSetToBytesRenderProcessCall();

            call.self  = CfrObject.Unwrap(this);
            call.size  = size;
            call.bytes = bytes.ptr;
            call.RequestExecution(this);
        }