Creates a Uint8Array value, an analogue of Uint8Array in JS.
Name | Type | Description |
buffer | VARIANT | The array buffer. |
length | long | The array length. |
result | I_DOCBUILDER_VALUE** | The returned typed array. |
CoInitialize(NULL); IONLYOFFICEDocBuilder* oBuilder = NULL; IONLYOFFICEDocBuilderContext* oContext = NULL; IONLYOFFICEDocBuilderValue* oArr = NULL; CComSafeArray<BYTE> arr; arr.Add(1); oBuilder->Initialize(); oBuilder->GetContext(&oContext); oContext->CreateTypedArray(ATL::CComVariant(arr), 1, &oArr); oBuilder->Dispose();