Home
last modified time | relevance | path

Searched refs:toRead (Results 1 – 9 of 9) sorted by relevance

/packages/modules/StatsD/statsd/tests/
DFieldValue_test.cpp260 size_t toRead = reader->currentToRead(); in TEST() local
261 std::memcpy(&(outData[pos]), reader->readBuffer(), toRead); in TEST()
262 pos += toRead; in TEST()
263 reader->move(toRead); in TEST()
394 size_t toRead = reader->currentToRead(); in TEST() local
395 std::memcpy(&(outData[pos]), reader->readBuffer(), toRead); in TEST()
396 pos += toRead; in TEST()
397 reader->move(toRead); in TEST()
456 size_t toRead = reader->currentToRead(); in TEST() local
457 std::memcpy(&(outData[pos]), reader->readBuffer(), toRead); in TEST()
[all …]
DUidMap_test.cpp179 size_t toRead = reader->currentToRead(); in protoOutputStreamToUidMapping() local
180 std::memcpy(&((bytes)[pos]), reader->readBuffer(), toRead); in protoOutputStreamToUidMapping()
181 pos += toRead; in protoOutputStreamToUidMapping()
182 reader->move(toRead); in protoOutputStreamToUidMapping()
Dstatsd_test_util.cpp37 size_t toRead = reader->currentToRead(); in outputStreamToProto() local
38 std::memcpy(&((bytes)[pos]), reader->readBuffer(), toRead); in outputStreamToProto()
39 pos += toRead; in outputStreamToProto()
40 reader->move(toRead); in outputStreamToProto()
/packages/modules/StatsD/statsd/src/subscriber/
DIncidentdReporter.cpp116 size_t toRead = reader->currentToRead(); in getProtoData() local
117 std::memcpy(&((*protoData)[pos]), reader->readBuffer(), toRead); in getProtoData()
118 pos += toRead; in getProtoData()
119 reader->move(toRead); in getProtoData()
/packages/modules/StatsD/statsd/src/metrics/
DEventMetricProducer.cpp145 size_t toRead = reader->currentToRead(); in serializeProtoLocked() local
146 std::memcpy(&((*buffer)[pos]), reader->readBuffer(), toRead); in serializeProtoLocked()
147 pos += toRead; in serializeProtoLocked()
148 reader->move(toRead); in serializeProtoLocked()
/packages/modules/StatsD/statsd/src/
Dstats_log_util.h97 size_t toRead = reader->currentToRead(); in parseProtoOutputStream() local
98 pbBytes.append(reinterpret_cast<const char*>(reader->readBuffer()), toRead); in parseProtoOutputStream()
99 reader->move(toRead); in parseProtoOutputStream()
DStatsLogProcessor.cpp117 size_t toRead = reader->currentToRead(); in flushProtoToBuffer() local
118 std::memcpy(&((*outData)[pos]), reader->readBuffer(), toRead); in flushProtoToBuffer()
119 pos += toRead; in flushProtoToBuffer()
120 reader->move(toRead); in flushProtoToBuffer()
/packages/modules/StatsD/statsd/src/logd/
DLogEvent.cpp609 size_t toRead = reader->currentToRead(); in writeExperimentIdsToProto() local
610 std::memcpy(protoOut->data() + pos, reader->readBuffer(), toRead); in writeExperimentIdsToProto()
611 pos += toRead; in writeExperimentIdsToProto()
612 reader->move(toRead); in writeExperimentIdsToProto()
/packages/modules/StatsD/statsd/src/guardrail/
DStatsdStats.cpp1089 size_t toRead = reader->currentToRead(); in dumpStats() local
1090 std::memcpy(&((*output)[pos]), reader->readBuffer(), toRead); in dumpStats()
1091 pos += toRead; in dumpStats()
1092 reader->move(toRead); in dumpStats()