Home
last modified time | relevance | path

Searched refs:buffer_size (Results 1 – 25 of 42) sorted by relevance

12

/ohos5.0/base/account/os_account/interfaces/kits/capi/osaccount/src/
H A Dos_account.cpp24 OsAccount_ErrCode OH_OsAccount_GetName(char *buffer, size_t buffer_size) in OH_OsAccount_GetName() argument
26 if ((buffer == nullptr) || (buffer_size == 0)) { in OH_OsAccount_GetName()
37 if (buffer_size <= accountSize) { in OH_OsAccount_GetName()
39 …er size(%{public}zu) is less than length of account name(%{public}zu).", buffer_size, accountSize); in OH_OsAccount_GetName()
42 err = strncpy_s(buffer, buffer_size, accountName.c_str(), accountSize); in OH_OsAccount_GetName()
/ohos5.0/foundation/communication/ipc/ipc/native/src/mock/include/
H A Ddbinder_base_invoker_process.h46 data.ParseFrom(reinterpret_cast<uintptr_t>(tr->buffer), tr->buffer_size); in ProcessTransaction()
168 messageInfo->bufferSize = tr->buffer_size; in ProcessReply()
296 tr->buffer_size -= sizeof(binder_buffer_object); in RemoveDBinderPtrData()
298 tr->offsets = tr->buffer_size; in RemoveDBinderPtrData()
302 memset_s(tr->buffer + tr->buffer_size + tr->offsets_size, delSize, 0, delSize); in RemoveDBinderPtrData()
317 data.WriteBuffer(reinterpret_cast<const void *>(tr->buffer), tr->buffer_size); in OverrideMessageParcelData()
361 transData->buffer_size = data.GetDataSize(); in MoveMessageParcel2TransData()
366 …mcpyResult += memcpy_s(transData->buffer + transData->buffer_size, useSize - transData->buffer_siz… in MoveMessageParcel2TransData()
374 transData->offsets = transData->buffer_size; in MoveMessageParcel2TransData()
397 transData->buffer_size = sizeof(binder_size_t); in MoveMessageParcel2TransData()
[all …]
H A Ddbinder_base_invoker_interface.h193 …if (tr->sizeOfSelf == 0 || tr->sizeOfSelf > SOCKET_MAX_BUFF_SIZE || tr->buffer_size > SOCKET_MAX_B… in CheckTransactionData()
194 tr->buffer_size == 0 || tr->offsets != tr->buffer_size || in CheckTransactionData()
195 tr->sizeOfSelf < sizeof(dbinder_transaction_data) + tr->buffer_size) { in CheckTransactionData()
202 … if (tr->offsets_size > (tr->sizeOfSelf - sizeof(dbinder_transaction_data) - tr->buffer_size)) { in CheckTransactionData()
206 tr->sizeOfSelf - tr->buffer_size - sizeof(dbinder_transaction_data) - tr->offsets_size; in CheckTransactionData()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-basic-services-kit/
H A D_os_account.md40 …) [OH_OsAccount_GetName](#oh_osaccount_getname) (char \*buffer, size_t buffer_size) | 获取调用方进程所属的系统…
87 OsAccount_ErrCode OH_OsAccount_GetName (char *buffer, size_t buffer_size)
103 | buffer_size | 名称字符数组的大小。 |
107 …ERROR表示内部错误;返回OS_ACCOUNT_ERR_INVALID_PARAMETER指示buffer为NULL指针或名称(不包括结束字符('\0'))的大小大于或等于buffer_size
H A Dos__account_8h.md24 …t_GetName](_os_account.md#oh_osaccount_getname) (char \*buffer, size_t buffer_size) | 获取调用方进程所属的系统…
/ohos5.0/foundation/communication/ipc/ipc/native/c/rpc/src/
H A Ddbinder_invoker.c79 buf->buffer_size = (data == NULL) ? 0 : (data->bufferCur - data->bufferBase); in ToTransData()
80 buf->offsets = buf->buffer_size; in ToTransData()
88 data->offsetsBase = data->offsetsCur = (size_t *)(data->bufferBase + (size_t)tr->buffer_size); in ToIpcData()
89 data->bufferLeft = (size_t)tr->buffer_size; in ToIpcData()
98 …if (memcpy_s(transData->buffer, transData->buffer_size, data->bufferBase, transData->buffer_size) … in MoveIpcToTransData()
104 if (memcpy_s(transData->buffer + transData->buffer_size, offsetsSize, in MoveIpcToTransData()
112 transData->buffer_size = sizeof(size_t); in MoveIpcToTransData()
114 transData->offsets = transData->buffer_size; in MoveIpcToTransData()
171 transData->buffer_size, transData->buffer, transData->buffer_size) != EOK) { in MoveTransData2Buffer()
281 .buffer_size = messageInfo->bufferSize, in HandleReply()
[all …]
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/accessor/src/
H A Dfile_metadata_stream.cpp410 ssize_t buffer_size = std::min((ssize_t)METADATA_STREAM_COPY_FROM_BUFFER_SIZE, src.GetSize()); in CopyDataFromSource() local
411 if (buffer_size > METADATA_STREAM_COPY_FROM_BUFFER_SIZE) { in CopyDataFromSource()
414 byte *tempBuffer = new (std::nothrow) byte[buffer_size]; in CopyDataFromSource()
417 HandleFileError("Memory allocation", filePath_, -1, -1, buffer_size); in CopyDataFromSource()
424 bool result = ReadFromSourceAndWriteToFile(src, tempBuffer, buffer_size, totalBytesWritten); in CopyDataFromSource()
429 …ataStream::ReadFromSourceAndWriteToFile(MetadataStream &src, byte *tempBuffer, ssize_t buffer_size, in ReadFromSourceAndWriteToFile() argument
433 ssize_t bytesRead = src.Read(tempBuffer, buffer_size); in ReadFromSourceAndWriteToFile()
444 HandleFileError("Read file", filePath_, -1, bytesRead, buffer_size); in ReadFromSourceAndWriteToFile()
H A Dbuffer_metadata_stream.cpp291 ssize_t buffer_size = std::min((ssize_t)METADATA_STREAM_PAGE_SIZE, src.GetSize()); in ReadAndWriteData() local
292 if (buffer_size > METADATA_STREAM_PAGE_SIZE) { in ReadAndWriteData()
295 byte *tempBuffer = new (std::nothrow) byte[buffer_size]; in ReadAndWriteData()
301 ssize_t bytesRead = src.Read(tempBuffer, buffer_size); in ReadAndWriteData()
/ohos5.0/docs/en/application-dev/reference/apis-basic-services-kit/
H A D_os_account.md40 …) [OH_OsAccount_GetName](#oh_osaccount_getname) (char \*buffer, size_t buffer_size) | Obtains the …
87 OsAccount_ErrCode OH_OsAccount_GetName (char *buffer, size_t buffer_size)
103 | buffer_size | Length of the system account name. |
107 …r the name length (excluding the end character ('\0')) is greater than or equal to **buffer_size**.
H A Dos__account_8h.md24 …t_GetName](_os_account.md#oh_osaccount_getname) (char \*buffer, size_t buffer_size) | Obtains the …
/ohos5.0/foundation/arkui/napi/sample/native_module_systemtest/
H A Djs_test_string_napi.cpp35 size_t buffer_size = bufferSizeAt16; in TestStringUtf16() local
38 NAPI_CALL(env, napi_get_value_string_utf16(env, args[0], buffer, buffer_size, &copied)); in TestStringUtf16()
56 size_t buffer_size = bufferSizeAt16Ext; in TestStringUtf16Insufficient() local
59 NAPI_CALL(env, napi_get_value_string_utf16(env, args[0], buffer, buffer_size, &copied)); in TestStringUtf16Insufficient()
/ohos5.0/base/msdp/device_status/rust/subsystem/input/sys/src/interaction/
H A Dextra_data.rs28 buffer_size: 0usize, in new()
44 self.buffer_size = vec.len(); in set_buffer()
/ohos5.0/foundation/multimedia/audio_framework/frameworks/native/pulseaudio/modules/hdi/
H A Dhdi_source.c74 uint32_t buffer_size; member
213 chunk->length = u->buffer_size; in GetCapturerFrameFromHdi()
401 …st_setf(data.proplist, PA_PROP_DEVICE_BUFFERING_BUFFER_SIZE, "%lu", (unsigned long)u->buffer_size); in PaSetSourceProperties()
427 u->block_usec = pa_bytes_to_usec(u->buffer_size, &u->source->sample_spec); in PaSetSourceProperties()
486 if (pa_modargs_get_value_u32(ma, "buffer_size", &u->buffer_size) < 0) { in InitUserdataAttrs()
488 u->buffer_size = DEFAULT_BUFFER_SIZE; in InitUserdataAttrs()
490 u->attrs.bufferSize = u->buffer_size; in InitUserdataAttrs()
H A Dmodule_split_stream_sink.c102 uint32_t buffer_size; member
997 u->buffer_size = DEFAULT_BUFFER_SIZE; in PaHdiSinkNewInit()
999 mg = pa_modargs_get_value_u32(ma, "buffer_size", &u->buffer_size); in PaHdiSinkNewInit()
1003 u->block_usec = pa_bytes_to_usec(u->buffer_size, &u->sink->sample_spec); in PaHdiSinkNewInit()
1007 pa_sink_set_max_request(u->sink, u->buffer_size); in PaHdiSinkNewInit()
H A Dsink_userdata.h39 uint32_t buffer_size; member
/ohos5.0/foundation/multimedia/audio_framework/frameworks/native/pulseaudio/modules/capturer/
H A Dmodule_inner_capturer_sink.c78 uint32_t buffer_size; member
446 u->buffer_size = DEFAULT_BUFFER_SIZE; in pa__init()
448 mg = pa_modargs_get_value_u32(ma, "buffer_size", &u->buffer_size); in pa__init()
452 u->block_usec = pa_bytes_to_usec(u->buffer_size, &u->sink->sample_spec); in pa__init()
457 pa_sink_set_max_request(u->sink, u->buffer_size); in pa__init()
/ohos5.0/base/sensors/sensor/rust/utils/socket_ipc_rust_ffi/src/
H A Dstream_buffer.rs212 let buffer_size = size; in check_write() localVariable
214 if buffer_size > avail_size && self.r_pos > 0 { in check_write()
218 avail_size >= buffer_size in check_write()
/ohos5.0/base/account/os_account/interfaces/kits/capi/osaccount/include/
H A Dos_account.h54 OsAccount_ErrCode OH_OsAccount_GetName(char *buffer, size_t buffer_size);
/ohos5.0/base/msdp/device_status/rust/data/sys/src/ipc/
H A Ddrag.rs44 buffer_size: usize, field
123 std::slice::from_raw_parts(value.buffer, value.buffer_size) in from_c()
/ohos5.0/docs/zh-cn/device-dev/subsystems/
H A Dsubsys-toolchain-bytrace-guide.md18 | -b&nbsp;_n_,--buffer_size&nbsp;_n_ | 指定_n_(KB)内存大小用于存取trace日志,默认2048KB |
/ohos5.0/foundation/communication/ipc/services/dbinder/c/include/
H A Ddbinder_types.h96 uint64_t buffer_size; member
/ohos5.0/base/msdp/device_status/rust/subsystem/input/sys/src/
H A Dinput_binding.rs60 pub buffer_size: usize, field
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/accessor/include/
H A Dfile_metadata_stream.h254 bool ReadFromSourceAndWriteToFile(MetadataStream &src, byte *tempBuffer, ssize_t buffer_size,
/ohos5.0/foundation/multimedia/av_codec/test/moduletest/vcodec/swdecoder/src/
H A Dvideodec_ndk_sample.cpp640 int32_t buffer_size = OH_AVMemory_GetSize(buffer); in InputFunc_FUZZ() local
643 if (memcpy_s(buffer_addr, buffer_size, data, size) != EOK) { in InputFunc_FUZZ()
649 attr.size = buffer_size; in InputFunc_FUZZ()
/ohos5.0/drivers/peripheral/display/composer/vdi_base/src/
H A Ddrm_connector.cpp120 const int32_t buffer_size = 10; /* buffer size */ in SetBrightness() local
121 char buffer[buffer_size]; in SetBrightness()

12