コード例 #1
0
        /// <summary>
        /// Read up to |size| bytes into |bytes| and return the number of bytes
        /// actually read.
        /// </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 ulong GetBytes(ulong size, RemotePtr bytes)
        {
            var call = new CfxPostDataElementGetBytesRenderProcessCall();

            call.@this = proxyId;
            call.size  = size;
            call.bytes = bytes.ptr;
            call.RequestExecution(this);
            return(call.__retval);
        }
コード例 #2
0
ファイル: CfrPostDataElement.cs プロジェクト: xmcy0011/NanUI
        /// <summary>
        /// Read up to |size| bytes into |bytes| and return the number of bytes
        /// actually read.
        /// </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 int GetBytes(int size, RemotePtr bytes)
        {
            var call = new CfxPostDataElementGetBytesRenderProcessCall();

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