| /foundation/filemanagement/file_api/interfaces/kits/js/src/common/napi/ |
| H A D | n_val.cpp | 78 size_t bufLen = strLen + 1; in ToUTF8String() local 79 unique_ptr<char[]> str = make_unique<char[]>(bufLen); in ToUTF8String() 80 status = napi_get_value_string_utf8(env_, val_, str.get(), bufLen, &strLen); in ToUTF8String() 203 size_t bufLen = 0; in ToArraybuffer() local 204 bool status = napi_get_arraybuffer_info(env_, val_, &buf, &bufLen); in ToArraybuffer() 205 return make_tuple(status == napi_ok, buf, bufLen); in ToArraybuffer() 333 NVal NVal::CreateUint8Array(napi_env env, void *buf, size_t bufLen) in CreateUint8Array() argument 339 bufLen, in CreateUint8Array() 344 napi_create_typedarray(env, napi_uint8_array, bufLen, output_buffer, 0, &output_array); in CreateUint8Array()
|
| /foundation/filemanagement/file_api/utils/filemgmt_libn/src/ |
| H A D | n_val.cpp | 82 size_t bufLen = strLen + 1; in ToUTF8String() local 83 auto str = CreateUniquePtr<char[]>(bufLen); in ToUTF8String() 87 status = napi_get_value_string_utf8(env_, val_, str.get(), bufLen, &strLen); in ToUTF8String() 227 size_t bufLen = 0; in ToArraybuffer() local 228 bool status = napi_get_arraybuffer_info(env_, val_, &buf, &bufLen); in ToArraybuffer() 229 return make_tuple(status == napi_ok, buf, bufLen); in ToArraybuffer() 367 NVal NVal::CreateUint8Array(napi_env env, void *buf, size_t bufLen) in CreateUint8Array() argument 371 env, buf, bufLen, [](napi_env env, void *finalize_data, void *finalize_hint) { free(finalize_data); }, NULL, in CreateUint8Array() 374 napi_create_typedarray(env, napi_uint8_array, bufLen, output_buffer, 0, &output_array); in CreateUint8Array()
|
| /foundation/distributedhardware/distributed_audio/services/audiotransport/test/unittest/receiverengine/src/ |
| H A D | av_receiver_engine_transport_test.cpp | 119 size_t bufLen = 4096; in HWTEST_F() local 120 std::shared_ptr<AudioData> audioData = std::make_shared<AudioData>(bufLen); in HWTEST_F() 137 size_t bufLen = 4096; in HWTEST_F() local 138 std::shared_ptr<AudioData> audioData = std::make_shared<AudioData>(bufLen); in HWTEST_F()
|
| /third_party/icu/icu4c/source/common/ |
| H A D | unifiedcache.h | 118 virtual char *writeDescription(char *buffer, int32_t bufLen) const override { 120 uprv_strncpy(buffer, s, bufLen); 121 buffer[bufLen - 1] = 0; 169 virtual char *writeDescription(char *buffer, int32_t bufLen) const override { 171 uprv_strncpy(buffer, s, bufLen); 172 buffer[bufLen - 1] = 0;
|
| /third_party/node/deps/icu-small/source/common/ |
| H A D | unifiedcache.h | 118 virtual char *writeDescription(char *buffer, int32_t bufLen) const override { 120 uprv_strncpy(buffer, s, bufLen); 121 buffer[bufLen - 1] = 0; 169 virtual char *writeDescription(char *buffer, int32_t bufLen) const override { 171 uprv_strncpy(buffer, s, bufLen); 172 buffer[bufLen - 1] = 0;
|
| /foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/napi/common/ |
| H A D | common_func.cpp | 60 size_t bufLen = 0; in GetAdler32Arg() local 61 tie(succ, buf, bufLen) = bufNVal.ToArrayBuffer(); in GetAdler32Arg() 67 return {true, adler, buf, bufLen}; in GetAdler32Arg() 86 size_t bufLen = 0; in GetCrc64Arg() local 87 tie(succ, buf, bufLen) = bufNVal.ToArrayBuffer(); in GetCrc64Arg() 93 return {true, crc64, buf, bufLen}; in GetCrc64Arg() 188 size_t bufLen = 0; in GetZStreamInValue() local 189 tie(succ, buf, bufLen) = zstreamNVal.GetProp("nextIn").ToArrayBuffer(); in GetZStreamInValue() 276 size_t bufLen = 0; in GetZstreamArg() local 277 tie(succ, buf, bufLen) in GetZstreamArg() 739 size_t bufLen = 0; GetInflateSetDictionaryArg() local 806 size_t bufLen = 0; GetInflateBackInitArg() local 968 size_t bufLen = 0; UnwrapArrayBufferParams() local 1010 size_t bufLen = 0; GzipUnwrapArrayBufferParams() local 1087 size_t bufLen = 0; GetGZFileArg() local 1169 size_t bufLen = 0; GetGZWriteArg() local [all...] |
| /foundation/filemanagement/file_api/interfaces/kits/cj/src/ |
| H A D | stream_ffi.h | 30 FFI_EXPORT RetDataI64 FfiOHOSStreamReadCur(int64_t id, uint8_t* buffer, int64_t bufLen, int64_t length); 31 FFI_EXPORT RetDataI64 FfiOHOSStreamRead(int64_t id, uint8_t* buffer, int64_t bufLen, int64_t length, int64_t offset);
|
| /foundation/communication/bluetooth_service/services/bluetooth/service/src/obex/ |
| H A D | obex_packet.h | 40 void Write(uint8_t *buf, uint16_t bufLen) const in Write() 42 PacketPayloadWrite(obexPacket_, buf, 0, bufLen); in Write()
|
| /third_party/node/deps/icu-small/source/tools/genrb/ |
| H A D | rle.h | 42 byteArrayToRLEString(const uint8_t* src,int32_t srcLen, uint16_t* buffer,int32_t bufLen, UErrorCode* status); 59 usArrayToRLEString(const uint16_t* src,int32_t srcLen,uint16_t* buffer, int32_t bufLen,UErrorCode* status);
|
| /third_party/icu/icu4c/source/tools/genrb/ |
| H A D | rle.h | 42 byteArrayToRLEString(const uint8_t* src,int32_t srcLen, uint16_t* buffer,int32_t bufLen, UErrorCode* status); 59 usArrayToRLEString(const uint16_t* src,int32_t srcLen,uint16_t* buffer, int32_t bufLen,UErrorCode* status);
|
| /third_party/skia/third_party/externals/icu/source/tools/genrb/ |
| H A D | rle.h | 42 byteArrayToRLEString(const uint8_t* src,int32_t srcLen, uint16_t* buffer,int32_t bufLen, UErrorCode* status); 59 usArrayToRLEString(const uint16_t* src,int32_t srcLen,uint16_t* buffer, int32_t bufLen,UErrorCode* status);
|
| /foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/udp/stream/libsoftbus_stream/stream_common_data_test/ |
| H A D | stream_common_data_test.cpp | 121 int32_t ret = tmpStreamCommonData->InitStreamData(nullptr, data->bufLen, std::move(data->extBuffer), data->extLen); in HWTEST_F() 131 ret = tmpStreamCommonData->InitStreamData(std::move(streamData->buffer), data->bufLen, nullptr, data->extLen); in HWTEST_F() 140 ret = tmpStreamCommonData->InitStreamData(std::move(streamData->buffer), data->bufLen, std::move(data->buffer), in HWTEST_F()
|
| /foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/udp/stream/ |
| H A D | dstream_adaptor_client_test.c | 43 printf("[client]:OnStreamReceived, len:%d, extLen:%d", data->bufLen, ext->bufLen); in OnStreamReceived() 44 printf("[client]:channelID:%d, streamBuf:%.*s\n", channelId, data->bufLen, data->buf); in OnStreamReceived()
|
| /third_party/mesa3d/src/egl/main/ |
| H A D | eglconfigdebug.c | 94 size_t bufLen = strlen(buf); in _strnAppend() local 96 maxAllowed = bufSize - bufLen; in _strnAppend() 100 (void) vsnprintf(&buf[bufLen], maxAllowed, fmt, args); in _strnAppend()
|
| /third_party/icu/icu4c/source/test/perf/DateFmtPerf/ |
| H A D | DateFmtPerf.h | 134 int32_t bufLen = len + 16; in uprintf() local 136 buf = new char[bufLen + 1]; in uprintf() 137 actualLen = str.extract(0, len, buf/*, bufLen*/); // Default codepage conversion in uprintf() 220 int32_t bufLen = len + 16; in uprintf() local 222 buf = new char[bufLen + 1]; in uprintf() 223 actualLen = str.extract(0, len, buf/*, bufLen*/); // Default codepage conversion in uprintf() 670 int32_t bufLen = str.extract(0, 0x7fffffff, stackBuffer, sizeof(stackBuffer), "UTF-8"); in uprintf() local 671 if(bufLen < sizeof(stackBuffer)) { in uprintf() 674 buf = new char[bufLen + 1]; in uprintf() 675 bufLen in uprintf() [all...] |
| /foundation/filemanagement/file_api/interfaces/kits/js/src/mod_hash/class_hashstream/ |
| H A D | hashstream_n_exporter.cpp | 172 auto [succ, buf, bufLen] = NVal(env, funcArg[NARG_POS::FIRST]).ToArraybuffer(); in Update() 188 MD5_Update(&hsEntity->md5Ctx, buf, bufLen); in Update() 191 SHA1_Update(&hsEntity->shaCtx, buf, bufLen); in Update() 194 SHA256_Update(&hsEntity->sha256Ctx, buf, bufLen); in Update()
|
| /third_party/icu/icu4c/source/test/intltest/ |
| H A D | ucaconf.cpp | 118 int32_t bufLen = (int32_t)uprv_strlen(buffer); in openTestFile() local 126 uprv_strcpy(buffer+bufLen, ext); in openTestFile() 131 uprv_strcpy(buffer+bufLen, "_SHORT"); in openTestFile() 136 uprv_strcpy(buffer+bufLen, "_STUB"); in openTestFile() 141 *(buffer+bufLen) = 0; in openTestFile()
|
| /foundation/CastEngine/castengine_cast_plus_stream/src/channel/src/softbus/ |
| H A D | softbus_connection.cpp | 161 if (data == nullptr || data->buf == nullptr || data->bufLen <= 0) { in OnConnectionStreamReceived() 180 channelListener->OnDataReceived(reinterpret_cast<uint8_t *>(data->buf), static_cast<unsigned int>(data->bufLen), 0); in OnConnectionStreamReceived() 181 CLOGD("Out, channelListener refCnt = %{public}ld, length = %{public}d.", channelListener.use_count(), data->bufLen); in OnConnectionStreamReceived() 500 bool SoftBusConnection::Send(const uint8_t *buf, int bufLen) in Send() argument 502 if (buf == nullptr || bufLen <= 0) { in Send() 510 ret = softbus_.SendSoftBusBytes(buf, bufLen); in Send() 513 ret = softbus_.SendSoftBusStream(buf, bufLen); in Send()
|
| /foundation/CastEngine/castengine_cast_framework/service/src/session/src/channel/src/softbus/ |
| H A D | softbus_connection.cpp | 161 if (data == nullptr || data->buf == nullptr || data->bufLen <= 0) { in OnConnectionStreamReceived() 180 channelListener->OnDataReceived(reinterpret_cast<uint8_t *>(data->buf), static_cast<unsigned int>(data->bufLen), 0); in OnConnectionStreamReceived() 181 CLOGD("Out, channelListener refCnt = %{public}ld, length = %{public}d.", channelListener.use_count(), data->bufLen); in OnConnectionStreamReceived() 497 bool SoftBusConnection::Send(const uint8_t *buf, int bufLen) in Send() argument 499 if (buf == nullptr || bufLen <= 0) { in Send() 507 ret = softbus_.SendSoftBusBytes(buf, bufLen); in Send() 510 ret = softbus_.SendSoftBusStream(buf, bufLen); in Send()
|
| /foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/stream/libsoftbus_stream/include/ |
| H A D | i_stream.h | 29 ssize_t bufLen = 0; member 54 static std::unique_ptr<IStream> MakeRawStream(const char *buf, ssize_t bufLen, const StreamFrameInfo &info,
|
| /third_party/icu/icu4c/source/samples/translit/ |
| H A D | util.cpp | 59 // int32_t bufLen = str.extract(0, len, buf); // Preflight in uprintf() 62 int32_t bufLen = len + 16; in uprintf() local 64 buf = new char[bufLen + 1]; in uprintf() 65 actualLen = str.extract(0, len, buf/*, bufLen*/); // Default codepage conversion in uprintf()
|
| /third_party/icu/icu4c/source/samples/msgfmt/ |
| H A D | util.cpp | 59 // int32_t bufLen = str.extract(0, len, buf); // Preflight in uprintf() 62 int32_t bufLen = len + 16; in uprintf() local 64 buf = new char[bufLen + 1]; in uprintf() 65 actualLen = str.extract(0, len, buf/*, bufLen*/); // Default codepage conversion in uprintf()
|
| /third_party/icu/icu4c/source/samples/datefmt/ |
| H A D | util.cpp | 59 // int32_t bufLen = str.extract(0, len, buf); // Preflight in uprintf() 62 int32_t bufLen = len + 16; in uprintf() local 64 buf = new char[bufLen + 1]; in uprintf() 65 actualLen = str.extract(0, len, buf/*, bufLen*/); // Default codepage conversion in uprintf()
|
| /third_party/skia/third_party/externals/icu/source/samples/datefmt/ |
| H A D | util.cpp | 59 // int32_t bufLen = str.extract(0, len, buf); // Preflight in uprintf() 62 int32_t bufLen = len + 16; in uprintf() local 64 buf = new char[bufLen + 1]; in uprintf() 65 actualLen = str.extract(0, len, buf/*, bufLen*/); // Default codepage conversion in uprintf()
|
| /third_party/skia/third_party/externals/icu/source/samples/msgfmt/ |
| H A D | util.cpp | 59 // int32_t bufLen = str.extract(0, len, buf); // Preflight in uprintf() 62 int32_t bufLen = len + 16; in uprintf() local 64 buf = new char[bufLen + 1]; in uprintf() 65 actualLen = str.extract(0, len, buf/*, bufLen*/); // Default codepage conversion in uprintf()
|