Dela via


JsCreateArrayBuffer Function

Creates a JavaScript ArrayBuffer object.

Syntax

STDAPI_(JsErrorCode) JsCreateArrayBuffer(  
   _In_ unsigned int byteLength,  
   _Out_ JsValueRef *result  
);  

Parameters

byteLength
The number of bytes in the ArrayBuffer.

result
The new ArrayBuffer object.

Return Value

The code JsNoError if the operation succeeded, a failure code otherwise.

Remarks

Requires an active script context.

This API is supported only in Microsoft Edge mode.

Requirements

Header: jsrt.h

See Also

Reference (JavaScript Runtime)