Home
last modified time | relevance | path

Searched refs:nbytes (Results 1 - 7 of 7) sorted by relevance

/foundation/arkui/ace_engine/frameworks/base/utils/
H A Dutf.cpp44 auto [pair, nbytes] = ConvertMUtf8ToUtf16Pair(mutf8, mutf8Len - pos); in MUtf8ToUtf16Size()
45 if (nbytes == 0) { in MUtf8ToUtf16Size()
46 nbytes = 1; in MUtf8ToUtf16Size()
49 mutf8 += nbytes; // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in MUtf8ToUtf16Size()
50 pos += nbytes; in MUtf8ToUtf16Size()
100 auto [pair, nbytes] = ConvertMUtf8ToUtf16Pair(mutf8In, mutf8Len - inPos); in ConvertRegionUtf8ToUtf16()
103 mutf8In += nbytes; // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in ConvertRegionUtf8ToUtf16()
104 inPos += nbytes; in ConvertRegionUtf8ToUtf16()
106 start -= nbytes; in ConvertRegionUtf8ToUtf16()
/foundation/CastEngine/castengine_wifi_display/tests/demo/player/
H A Dplayer_demo.cpp158 int servSocket, nbytes; in RecvUDP() local
180 if ((nbytes = recvfrom(servSocket, buffer, sizeof(buffer), 0, (struct sockaddr *)&cliAddr, in RecvUDP()
186 SHARING_LOGD("\nRecv data(size:%{public}d) From %{public}s:%{public}d", nbytes, inet_ntoa(cliAddr.sin_addr), in RecvUDP()
189 cb(buffer, nbytes); in RecvUDP()
/foundation/CastEngine/castengine_wifi_display/tests/demo/protocol/rtsp/
H A Drtsp_player_demo.cpp59 int servSocket, nbytes; in RecvUDP() local
81 if ((nbytes = recvfrom(servSocket, buffer, sizeof(buffer), 0, (struct sockaddr *)&cliAddr, in RecvUDP()
87 printf("\nRecv data(size:%d) From %s:%d\n", nbytes, inet_ntoa(cliAddr.sin_addr), ntohs(cliAddr.sin_port)); in RecvUDP()
89 cb(buffer, nbytes); in RecvUDP()
/foundation/multimedia/audio_framework/frameworks/native/pulseaudio/modules/capturer/
H A Dmodule_inner_capturer_sink.c133 size_t nbytes; in SinkUpdateRequestedLatencyCb() local
141 nbytes = pa_usec_to_bytes(u->block_usec, &s->sample_spec); in SinkUpdateRequestedLatencyCb()
142 pa_sink_set_max_rewind_within_thread(s, nbytes); in SinkUpdateRequestedLatencyCb()
143 pa_sink_set_max_request_within_thread(s, nbytes); in SinkUpdateRequestedLatencyCb()
428 size_t nbytes; in pa__init() local
459 nbytes = pa_usec_to_bytes(u->block_usec, &u->sink->sample_spec); in pa__init()
461 pa_sink_set_max_rewind(u->sink, nbytes); in pa__init()
/foundation/CastEngine/castengine_wifi_display/tests/demo/rtp/
H A Drtp_dec_demo.cpp87 int servSocket, nbytes; in RecvUDP() local
109 if ((nbytes = recvfrom(servSocket, buffer, sizeof(buffer), 0, (struct sockaddr *)&cliAddr, in RecvUDP()
115 printf("\nRecv data(size:%d) From %s:%d\n", nbytes, inet_ntoa(cliAddr.sin_addr), ntohs(cliAddr.sin_port)); in RecvUDP()
117 cb(buffer, nbytes); in RecvUDP()
/foundation/multimedia/audio_framework/frameworks/native/pulseaudio/modules/hdi/
H A Dmodule_split_stream_sink.c252 size_t nbytes; in SinkUpdateRequestedLatencyCb() local
263 nbytes = pa_usec_to_bytes(u->block_usec, &s->sample_spec); in SinkUpdateRequestedLatencyCb()
264 pa_sink_set_max_rewind_within_thread(s, nbytes); in SinkUpdateRequestedLatencyCb()
265 pa_sink_set_max_request_within_thread(s, nbytes); in SinkUpdateRequestedLatencyCb()
994 size_t nbytes; in PaHdiSinkNewInit() local
1007 nbytes = pa_usec_to_bytes(u->block_usec, &u->sink->sample_spec); in PaHdiSinkNewInit()
1008 pa_sink_set_max_rewind(u->sink, nbytes); in PaHdiSinkNewInit()
H A Dhdi_sink.c2588 size_t nbytes = pa_usec_to_bytes(MAX_REWIND, &i->sink->sample_spec); in offloadSetMaxRewind() local
2592 pa_resampler_request(i->thread_info.resampler, nbytes) : nbytes); in offloadSetMaxRewind()
3421 size_t nbytes; in SinkUpdateRequestedLatencyCb() local
3431 nbytes = pa_usec_to_bytes(u->block_usec, &s->sample_spec); in SinkUpdateRequestedLatencyCb()
3432 pa_sink_set_max_request_within_thread(s, nbytes); in SinkUpdateRequestedLatencyCb()

Completed in 12 milliseconds