JsCreateDataView Function
Creates a Javascript DataView
object.
Syntax
JsErrorCode JsCreateDataView(
_In_ JsValueRef arrayBuffer,
_In_ unsigned int byteOffset,
_In_ unsigned int byteLength,
_Out_ JsValueRef *result
);
Parameters
arrayBuffer
An existing ArrayBuffer
object to use as the storage for the result DataView
object.
byteOffset
The offset in bytes from the start of arrayBuffer
for result DataView
to reference.
byteLength
The number of bytes in the ArrayBuffer for result DataView to reference.
result
The new DataView 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