Home
last modified time | relevance | path

Searched refs:byte_offset (Results 1 – 20 of 20) sorted by relevance

/ohos5.0/base/hiviewdfx/hilog/interfaces/js/kits/napi/src/common/napi/
H A Dn_val.cpp146 size_t byte_offset; in ToTypedArray() local
150 &byte_offset); in ToTypedArray()
168 size_t byte_offset; in ToTypedArrayInfo() local
172 …pi_get_typedarray_info(env_, val_, &type, &length, (void **)&data, &in_array_buffer, &byte_offset); in ToTypedArrayInfo()
173 return make_tuple(status == napi_ok, data, length, byte_offset, type); in ToTypedArrayInfo()
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/common/napi/
H A Dn_val.cpp272 size_t byte_offset; in ToTypedArray() local
276 &byte_offset); in ToTypedArray()
294 size_t byte_offset; in ToTypedArrayInfo() local
298 …pi_get_typedarray_info(env_, val_, &type, &length, (void **)&data, &in_array_buffer, &byte_offset); in ToTypedArrayInfo()
299 return make_tuple(status == napi_ok, data, length, byte_offset, type); in ToTypedArrayInfo()
/ohos5.0/foundation/arkui/napi/native_engine/impl/ark/
H A Dark_native_engine.cpp1222 typedArray = panda::Int8ArrayRef::New(vm, arrayBuf, byte_offset, length); in NapiNewTypedArray()
1225 typedArray = panda::Uint8ArrayRef::New(vm, arrayBuf, byte_offset, length); in NapiNewTypedArray()
1231 typedArray = panda::Int16ArrayRef::New(vm, arrayBuf, byte_offset, length); in NapiNewTypedArray()
1234 typedArray = panda::Uint16ArrayRef::New(vm, arrayBuf, byte_offset, length); in NapiNewTypedArray()
1237 typedArray = panda::Int32ArrayRef::New(vm, arrayBuf, byte_offset, length); in NapiNewTypedArray()
1240 typedArray = panda::Uint32ArrayRef::New(vm, arrayBuf, byte_offset, length); in NapiNewTypedArray()
1243 typedArray = panda::Float32ArrayRef::New(vm, arrayBuf, byte_offset, length); in NapiNewTypedArray()
1246 typedArray = panda::Float64ArrayRef::New(vm, arrayBuf, byte_offset, length); in NapiNewTypedArray()
1249 typedArray = panda::BigInt64ArrayRef::New(vm, arrayBuf, byte_offset, length); in NapiNewTypedArray()
1252 typedArray = panda::BigUint64ArrayRef::New(vm, arrayBuf, byte_offset, length); in NapiNewTypedArray()
[all …]
H A Dark_native_engine.h172 size_t byte_offset, size_t length, napi_value* result) override;
175 size_t byte_offset, size_t length, napi_value* result) override;
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/js/napi/common/src/
H A Djs_utils.cpp215 size_t byte_offset = 0; in Convert2Value() local
218 …status = napi_get_typedarray_info(env, jsValue, &type, &length, &tmp, &input_buffer, &byte_offset); in Convert2Value()
270 size_t byte_offset = 0; in Convert2Value() local
273 …status = napi_get_typedarray_info(env, jsValue, &type, &length, &tmp, &input_buffer, &byte_offset); in Convert2Value()
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/common/napi/
H A Dn_val.cpp212 size_t byte_offset; in ToTypedArray() local
216 …pi_get_typedarray_info(env_, val_, &type, &length, (void **)&data, &in_array_buffer, &byte_offset); in ToTypedArray()
/ohos5.0/foundation/filemanagement/file_api/utils/filemgmt_libn/src/
H A Dn_val.cpp236 size_t byte_offset; in ToTypedArray() local
240 …pi_get_typedarray_info(env_, val_, &type, &length, (void **)&data, &in_array_buffer, &byte_offset); in ToTypedArray()
/ohos5.0/foundation/arkui/napi/native_engine/
H A Dnative_api.cpp2695 size_t byte_offset, in napi_create_typedarray() argument
2721 size_t byte_offset, in napi_create_sendable_typedarray() argument
2750 size_t* byte_offset) in napi_get_typedarray_info() argument
2773 if (byte_offset != nullptr) { in napi_get_typedarray_info()
2774 *byte_offset = typedArray->ByteOffset(vm); in napi_get_typedarray_info()
2790 if (byte_offset != nullptr) { in napi_get_typedarray_info()
2791 *byte_offset = typedArray->ByteOffset(vm); in napi_get_typedarray_info()
2804 size_t byte_offset, in napi_create_dataview() argument
2816 if (length + byte_offset > static_cast<size_t>(res->ByteLength(vm))) { in napi_create_dataview()
2849 size_t* byte_offset) in napi_get_dataview_info() argument
[all …]
H A Dnative_engine.h122 panda::Local<panda::ArrayBufferRef> arrayBuf, size_t byte_offset,
125 … panda::Local<panda::SendableArrayBufferRef> arrayBuf, size_t byte_offset,
/ohos5.0/docs/zh-cn/application-dev/reference/native-lib/
H A Dnapi.md275 - 如果byte_offset与byte_length的和大于arraybuffer的大小,该导出接口将会抛出RangeError异常,并返回napi_pending_exception。
1275 size_t byte_offset,
1293 - [in] byte_offset:ArrayBuffer 的偏移量。
/ohos5.0/foundation/arkui/napi/interfaces/kits/napi/
H A Dnative_api.h164 size_t byte_offset,
/ohos5.0/docs/zh-cn/application-dev/napi/
H A Duse-jsvm-about-array.md24 …视图,其中每个元素都具有相同的底层二进制标量数据类型。需要注意,对于入参有以下要求:(length * size_of_element) + byte_offset 要不大于传入数组的大小(以字节…
25 …View 对象在底层数据缓冲区上提供类似数组的视图,该 ArrayBuffer 允许有不同大小和类型的元素。要求 byte_length + byte_offset 小于或等于传入数组的字节大小,…
591 // byte_offset
H A Dnapi-data-types-interfaces.md678 size_t byte_offset,
/ohos5.0/foundation/distributeddatamgr/data_share/frameworks/js/napi/common/src/
H A Ddatashare_js_utils.cpp79 size_t byte_offset = 0; in Convert2U8Vector() local
80 … napi_get_typedarray_info(env, input_array, &type, &length, &data, &input_buffer, &byte_offset); in Convert2U8Vector()
/ohos5.0/docs/en/application-dev/napi/
H A Duse-jsvm-about-array.md24 …ied must meet the following:<br>(**length** x **size_of_element**) + **byte_offset** ≤ Array size …
25 …ts of different sizes and types. <br/>The sum of **byte_length** and **byte_offset** must be less …
591 // byte_offset
H A Dnapi-data-types-interfaces.md667 size_t byte_offset,
/ohos5.0/base/notification/distributed_notification_service/frameworks/js/napi/src/reminder/
H A Dreminder_common.cpp343 size_t byte_offset = 0; in Convert2U8Vector() local
344 … napi_get_typedarray_info(env, input_array, &type, &length, &data, &input_buffer, &byte_offset); in Convert2U8Vector()
/ohos5.0/docs/en/application-dev/reference/native-lib/
H A Dnapi.md277 - If the sum of **byte_offset** and **byte_length** is greater than the size of **arraybuffer**, th…
1273 size_t byte_offset,
1291 - **byte_offset**: offset of the ArrayBuffer.
/ohos5.0/docs/zh-cn/application-dev/reference/common/
H A D_j_s_v_m.md3222 | data | TypedArray底层的数据缓冲区由byte_offset值调整,使其指向TypedArray 中的第一个元素。如果数组的长度是0,这可能是NULL或任何其他指针值。 |
3224 … 数组的第一个元素所在的基础原生数组中的字节偏移量。 data 参数的值已经过调整,因此data指向数组中的第一个元素。因此, 原生数组的第一个字节将位于data - byte_offset。 |
/ohos5.0/docs/en/application-dev/reference/common/
H A D_j_s_v_m.md3222 | data | The underlying data buffer of the TypedArray is adjusted by byte_offset so that it points …
3224 … been adjusted. Therefore, the first byte of the native array is located at (data – byte_offset).|