示例#1
0
        /// <summary>
        /// Read up to |bufferSize| number of bytes into |buffer|. Reading begins at
        /// the specified byte |dataOffset|. Returns the number of bytes read.
        /// </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 int GetData(RemotePtr buffer, int bufferSize, int dataOffset)
        {
            var call = new CfxBinaryValueGetDataRenderProcessCall();

            call.self       = CfrObject.Unwrap(this);
            call.buffer     = buffer.ptr;
            call.bufferSize = bufferSize;
            call.dataOffset = dataOffset;
            call.RequestExecution(this);
            return(call.__retval);
        }
        /// <summary>
        /// Read up to |bufferSize| number of bytes into |buffer|. Reading begins at
        /// the specified byte |dataOffset|. Returns the number of bytes read.
        /// </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 ulong GetData(RemotePtr buffer, ulong bufferSize, ulong dataOffset)
        {
            var call = new CfxBinaryValueGetDataRenderProcessCall();

            call.@this      = proxyId;
            call.buffer     = buffer.ptr;
            call.bufferSize = bufferSize;
            call.dataOffset = dataOffset;
            call.RequestExecution(this);
            return(call.__retval);
        }
示例#3
0
 /// <summary>
 /// Read up to |bufferSize| number of bytes into |buffer|. Reading begins at
 /// the specified byte |dataOffset|. Returns the number of bytes read.
 /// </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 int GetData(RemotePtr buffer, int bufferSize, int dataOffset)
 {
     var call = new CfxBinaryValueGetDataRenderProcessCall();
     call.self = CfrObject.Unwrap(this);
     call.buffer = buffer.ptr;
     call.bufferSize = bufferSize;
     call.dataOffset = dataOffset;
     call.RequestExecution(this);
     return call.__retval;
 }