Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Creates a Javascript ArrayBuffer object to access external memory.
Syntax
STDAPI_(JsErrorCode) JsCreateExternalArrayBuffer(
_Pre_maybenull_ _Pre_writable_byte_size_(byteLength) void *data,
_In_ unsigned int byteLength,
_In_opt_ JsFinalizeCallback finalizeCallback,
_In_opt_ void *callbackState,
_Out_ JsValueRef *result
);
Parameters
data
A pointer to the external memory.
byteLength
The number of bytes in the external memory.
finalizeCallback
A callback for when the object is finalized. May be null.
callbackState
User provided state that will be passed back to finalizeCallback.
result
The new ArrayBuffer object.
Return Value
The code JsNoError if the operation succeeded, a failure code otherwise.
Remarks
Requires an active script context.
Requirements
Header: jsrt.h