ChromiumFX/Generated/Remote/CfrV8Value.cs
/// <summary>
/// Create a new CfrV8Value object of type ArrayBuffer which wraps the
/// provided |buffer| of size |length| bytes. The ArrayBuffer is externalized,
/// meaning that it does not own |buffer|. The caller is responsible for freeing
/// |buffer| when requested via a call to CfrV8ArrayBufferReleaseCallback::
/// ReleaseBuffer. This function should only be called from within the scope of a
/// CfrRenderProcessHandler, CfrV8Handler or CfrV8Accessor callback,
/// or in combination with calling enter() and exit() on a stored CfrV8Context
/// reference.
/// </summary>
/// <remarks>
/// See also the original CEF documentation in
/// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_v8_capi.h">cef/include/capi/cef_v8_capi.h</see>.
/// </remarks>
Create a new CfrV8Value object of type ArrayBuffer which wraps the
provided |buffer| of size |length| bytes. The ArrayBuffer is externalized,
meaning that it does not own |buffer|. The caller is responsible for freeing
|buffer| when requested via a call to CfrV8ArrayBufferReleaseCallback::
ReleaseBuffer. This function should only be called from within the scope of a
CfrRenderProcessHandler, CfrV8Handler or CfrV8Accessor callback,
or in combination with calling enter() and exit() on a stored CfrV8Context
reference.
Create a new CfrV8Value object of type ArrayBuffer which wraps the provided |buffer| of size |length| bytes . The ArrayBuffer is externalized meaning that it does not own |buffer| . The caller is responsible for freeing |buffer| when requested via a call to CfrV8ArrayBufferReleaseCallback :: ReleaseBuffer . This function should only be called from within the scope of a CfrRenderProcessHandler CfrV8Handler or CfrV8Accessor callback or in combination with calling enter () and exit () on a stored CfrV8Context reference .
public static CfrV8Value CreateArrayBuffer(RemotePtr buffer, ulong length, CfrV8ArrayBufferReleaseCallback releaseCallback) {
            var connection = CfxRemoteCallContext.CurrentContext.connection;
            var call = new CfxV8ValueCreateArrayBufferRemoteCall();
            if(buffer.connection != connection) throw new ArgumentException("Render process connection mismatch.", "buffer");
            call.buffer = buffer.ptr;
            call.length = length;
            if(!CfrObject.CheckConnection(releaseCallback, connection)) throw new ArgumentException("Render process connection mismatch.", "releaseCallback");
            call.releaseCallback = CfrObject.Unwrap(releaseCallback).ptr;
            call.RequestExecution(connection);
            return CfrV8Value.Wrap(new RemotePtr(connection, call.__retval));
        }
public static CfrV8Value CreateArrayBuffer ( RemotePtr buffer , ulong length , CfrV8ArrayBufferReleaseCallback releaseCallback ) { var connection = CfxRemoteCallContext . CurrentContext . connection ; var call = new CfxV8ValueCreateArrayBufferRemoteCall ( ) ; if ( buffer . connection != connection ) throw new ArgumentException ( " " , " " ) ; call . buffer = buffer . ptr ; call . length = length ; if ( ! CfrObject . CheckConnection ( releaseCallback , connection ) ) throw new ArgumentException ( " " , " " ) ; call . releaseCallback = CfrObject . Unwrap ( releaseCallback ) . ptr ; call . RequestExecution ( connection ) ; return CfrV8Value . Wrap ( new RemotePtr ( connection , call . __retval ) ) ; }
Create a new CfrV8Value object of type ArrayBuffer which wraps the
provided |buffer| of size |length| bytes.
Create a new CfrV8Value object of type ArrayBuffer which wraps the provided |buffer| of size |length| bytes .
buffer
RemotePtr
length
ulong
releaseCallback
CfrV8ArrayBufferReleaseCallback
remarks
See also the original CEF documentation in
cef/include/capi/cef_v8_capi.h
See also the original CEF documentation in cef / include / capi / cef_v8_capi . h