Home
last modified time | relevance | path

Searched refs:encode_buffer (Results 1 – 25 of 31) sorted by relevance

12

/external/cronet/third_party/protobuf/src/google/protobuf/stubs/
Dstrutil_unittest.cc444 char encode_buffer[100]; in TEST() local
460 memset(encode_buffer, 0, sizeof(encode_buffer)); in TEST()
463 encode_buffer, in TEST()
464 sizeof(encode_buffer)); in TEST()
472 ASSERT_STREQ(encode_buffer, base64_tests[i].ciphertext); in TEST()
475 memset(encode_buffer, 0, sizeof(encode_buffer)); in TEST()
478 encode_buffer, cipher_length); in TEST()
483 EXPECT_STREQ(encode_buffer, base64_tests[i].ciphertext); in TEST()
488 Base64Unescape(StringPiece(encode_buffer, cipher_length), &decode_str)); in TEST()
501 EXPECT_EQ(encoded, std::string(encode_buffer, cipher_length)); in TEST()
[all …]
/external/protobuf/src/google/protobuf/stubs/
Dstrutil_unittest.cc444 char encode_buffer[100]; in TEST() local
460 memset(encode_buffer, 0, sizeof(encode_buffer)); in TEST()
463 encode_buffer, in TEST()
464 sizeof(encode_buffer)); in TEST()
472 ASSERT_STREQ(encode_buffer, base64_tests[i].ciphertext); in TEST()
475 memset(encode_buffer, 0, sizeof(encode_buffer)); in TEST()
478 encode_buffer, cipher_length); in TEST()
483 EXPECT_STREQ(encode_buffer, base64_tests[i].ciphertext); in TEST()
488 Base64Unescape(StringPiece(encode_buffer, cipher_length), &decode_str)); in TEST()
501 EXPECT_EQ(encoded, std::string(encode_buffer, cipher_length)); in TEST()
[all …]
/external/pigweed/pw_protobuf/
Dencoder_test.cc93 std::byte encode_buffer[64]; in TEST() local
99 StreamEncoder encoder(writer, encode_buffer); in TEST()
127 std::byte encode_buffer[12]; in TEST() local
128 MemoryEncoder encoder(encode_buffer); in TEST()
146 std::byte encode_buffer[12]; in TEST() local
147 MemoryEncoder encoder(encode_buffer); in TEST()
170 std::byte encode_buffer[kScratchBufferSize]; in TEST() local
173 StreamEncoder encoder(writer, encode_buffer); in TEST()
258 std::byte encode_buffer[32]; in TEST() local
259 MemoryEncoder encoder(encode_buffer); in TEST()
[all …]
Dcodegen_encoder_test.cc56 std::byte encode_buffer[Pigweed::kMaxEncodedSizeBytes + in TEST() local
60 stream::MemoryWriter writer(encode_buffer); in TEST()
211 std::byte encode_buffer[(Crate::kMaxEncodedSizeBytes + 12) * 4]; in TEST() local
213 Crate::MemoryEncoder biggest_crate(encode_buffer); in TEST()
256 std::byte encode_buffer[RepeatedTest::kMaxEncodedSizeBytes]; in TEST() local
258 stream::MemoryWriter writer(encode_buffer); in TEST()
291 std::byte encode_buffer[RepeatedTest::kMaxEncodedSizeBytes]; in TEST() local
293 stream::MemoryWriter writer(encode_buffer); in TEST()
324 std::byte encode_buffer[RepeatedTest::kMaxEncodedSizeBytes]; in TEST() local
326 stream::MemoryWriter writer(encode_buffer); in TEST()
[all …]
Dmap_utils_test.cc117 std::byte encode_buffer[17]; in TEST() local
118 stream::MemoryWriter writer(encode_buffer); in TEST()
137 std::byte encode_buffer[17]; in TEST() local
138 stream::MemoryWriter writer(encode_buffer); in TEST()
Dcodegen_message_test.cc1316 std::byte encode_buffer[Pigweed::kMaxEncodedSizeBytes]; in TEST() local
1319 stream::MemoryWriter writer(encode_buffer); in TEST()
1372 std::byte encode_buffer[Pigweed::kMaxEncodedSizeBytes]; in TEST() local
1375 stream::MemoryWriter writer(encode_buffer); in TEST()
1393 std::byte encode_buffer[RepeatedTest::kMaxEncodedSizeBytes]; in TEST() local
1395 stream::MemoryWriter writer(encode_buffer); in TEST()
1432 std::byte encode_buffer[RepeatedTest::kMaxEncodedSizeBytes]; in TEST() local
1434 stream::MemoryWriter writer(encode_buffer); in TEST()
1464 std::byte encode_buffer[RepeatedTest::kMaxEncodedSizeBytes + in TEST() local
1467 stream::MemoryWriter writer(encode_buffer); in TEST()
[all …]
Dencoder_perf_test.cc26 std::byte encode_buffer[30]; in BasicIntegerPerformance() local
29 MemoryEncoder encoder(encode_buffer); in BasicIntegerPerformance()
/external/pigweed/pw_log/public/pw_log/
Dproto_utils.h63 ByteSpan encode_buffer);
72 ByteSpan encode_buffer);
85 ByteSpan encode_buffer) { in EncodeTokenizedLog() argument
87 metadata, tokenized_data, ticks_since_epoch, encode_buffer); in EncodeTokenizedLog()
97 ByteSpan encode_buffer) { in EncodeTokenizedLog() argument
101 encode_buffer); in EncodeTokenizedLog()
117 ByteSpan encode_buffer) { in EncodeTokenizedLog() argument
122 encode_buffer); in EncodeTokenizedLog()
142 ByteSpan encode_buffer) { in EncodeTokenizedLog() argument
144 metadata, tokenized_data, ticks_since_epoch, encode_buffer); in EncodeTokenizedLog()
/external/webrtc/rtc_base/
Dbase64_unittest.cc368 char encode_buffer[100]; in TEST() local
382 memset(encode_buffer, 0, sizeof(encode_buffer)); in TEST()
385 encode_buffer, sizeof(encode_buffer)); in TEST()
390 EXPECT_STREQ(encode_buffer, base64_tests[i].cyphertext); in TEST()
393 memset(encode_buffer, 0, sizeof(encode_buffer)); in TEST()
396 encode_buffer, cypher_length); in TEST()
401 EXPECT_STREQ(encode_buffer, base64_tests[i].cyphertext); in TEST()
405 decode_length = Base64Unescape(encode_buffer, cypher_length, decode_buffer, in TEST()
418 char* first_equals = strchr(encode_buffer, '='); in TEST()
427 EXPECT_NE(0U, Base64Unescape(encode_buffer, first_equals - encode_buffer, in TEST()
[all …]
/external/pigweed/pw_log/
Dproto_utils_test.cc212 std::byte encode_buffer[32]; in TEST() local
221 encode_buffer); in TEST()
236 encode_buffer); in TEST()
251 std::byte encode_buffer[32]; in TEST() local
261 encode_buffer); in TEST()
276 std::byte encode_buffer[1]; in TEST() local
285 encode_buffer); in TEST()
298 std::byte encode_buffer[64]; in TEST() local
308 encode_buffer); in TEST()
332 std::byte encode_buffer[64]; in TEST() local
[all …]
Dproto_utils.cc35 ByteSpan encode_buffer) { in EncodeLog() argument
37 pwpb::LogEntry::MemoryEncoder encoder(encode_buffer); in EncodeLog()
69 ByteSpan encode_buffer) { in CreateEncoderAndEncodeTokenizedLog() argument
71 pwpb::LogEntry::MemoryEncoder encoder(encode_buffer); in CreateEncoderAndEncodeTokenizedLog()
/external/pigweed/pw_thread/
Dthread_snapshot_service_test.cc79 std::array<std::byte, RequiredServiceBufferSize(1)> encode_buffer; in TEST() local
81 proto::SnapshotThreadInfo::MemoryEncoder encoder(encode_buffer); in TEST()
100 std::array<std::byte, RequiredServiceBufferSize(3)> encode_buffer; in TEST() local
102 proto::SnapshotThreadInfo::MemoryEncoder encoder(encode_buffer); in TEST()
140 static std::array<std::byte, RequiredServiceBufferSize()> encode_buffer; in TEST() local
142 proto::SnapshotThreadInfo::MemoryEncoder encoder(encode_buffer); in TEST()
161 static std::array<std::byte, RequiredServiceBufferSize(1)> encode_buffer; in TEST() local
163 proto::SnapshotThreadInfo::MemoryEncoder encoder(encode_buffer); in TEST()
187 static std::array<std::byte, RequiredServiceBufferSize(1)> encode_buffer; in TEST() local
189 proto::SnapshotThreadInfo::MemoryEncoder encoder(encode_buffer); in TEST()
/external/grpc-grpc/third_party/nanopb/tests/basic_buffer/
DSConscript5 enc = env.Program(["encode_buffer.c", "$COMMON/person.pb.c", "$COMMON/pb_encode.o", "$COMMON/pb_com…
9 env.RunTest([dec, "encode_buffer.output"])
10 env.Decode(["encode_buffer.output", "$COMMON/person.proto"], MESSAGE = "Person")
11 env.Compare(["decode_buffer.output", "encode_buffer.decoded"])
/external/nanopb-c/tests/basic_buffer/
DSConscript5 enc = env.Program(["encode_buffer.c", "$COMMON/person.pb.c", "$COMMON/pb_encode.o", "$COMMON/pb_com…
9 env.RunTest([dec, "encode_buffer.output"])
10 env.Decode(["encode_buffer.output", "$COMMON/person.proto"], MESSAGE = "Person")
11 env.Compare(["decode_buffer.output", "encode_buffer.decoded"])
/external/pigweed/pw_protobuf/size_report/
Dsimple_codegen_comparison.cc46 std::array<std::byte, pwpb::ItemInfo::kMaxEncodedSizeBytes> encode_buffer; variable
47 pw::protobuf::MemoryEncoder generic_encoder(encode_buffer);
92 std::array<std::byte, pwpb::ItemInfo::kMaxEncodedSizeBytes> encode_buffer; variable
93 pwpb::ItemInfo::MemoryEncoder encoder(encode_buffer);
146 std::array<std::byte, pwpb::ItemInfo::kMaxEncodedSizeBytes> encode_buffer; variable
147 pwpb::ItemInfo::MemoryEncoder encoder(encode_buffer);
Doneof_codegen_comparison.cc49 std::array<std::byte, ItemInfo::kMaxEncodedSizeBytes> encode_buffer; variable
50 pw::protobuf::MemoryEncoder encoder(encode_buffer);
179 std::array<std::byte, ResponseInfo::kMaxEncodedSizeBytes> encode_buffer; variable
180 ResponseInfo::MemoryEncoder encoder(encode_buffer);
323 std::array<std::byte, ResponseInfo::kMaxEncodedSizeBytes> encode_buffer; variable
324 ResponseInfo::MemoryEncoder encoder(encode_buffer);
/external/armnn/third-party/stb/
Dstb_image_resize.h551 …float* encode_buffer; // A temporary buffer to store floats so we don't lose precision while we do… member
1695 …(stbir__info* stbir_info, int num_pixels, void *output_buffer, float *encode_buffer, int channels,… in stbir__encode_scanline() argument
1708 float alpha = encode_buffer[pixel_index + alpha_channel]; in stbir__encode_scanline()
1714 encode_buffer[pixel_index + n] *= reciprocal_alpha; in stbir__encode_scanline()
1754 … ((unsigned char*)output_buffer)[index] = STBIR__ENCODE_LINEAR8(encode_buffer[index]); in stbir__encode_scanline()
1767 … ((unsigned char*)output_buffer)[index] = stbir__linear_to_srgb_uchar(encode_buffer[index]); in stbir__encode_scanline()
1771 …*)output_buffer)[pixel_index + alpha_channel] = STBIR__ENCODE_LINEAR8(encode_buffer[pixel_index+al… in stbir__encode_scanline()
1783 … ((unsigned short*)output_buffer)[index] = STBIR__ENCODE_LINEAR16(encode_buffer[index]); in stbir__encode_scanline()
1796 …unsigned short)STBIR__ROUND_INT(stbir__linear_to_srgb(stbir__saturate(encode_buffer[index])) * stb… in stbir__encode_scanline()
1800 …)output_buffer)[pixel_index + alpha_channel] = STBIR__ENCODE_LINEAR16(encode_buffer[pixel_index + … in stbir__encode_scanline()
[all …]
/external/pigweed/pw_transfer/public/pw_transfer/
Dtransfer_thread.h42 ByteSpan encode_buffer) in TransferThread() argument
46 encode_buffer_(encode_buffer) {} in TransferThread()
222 const ByteSpan& encode_buffer() const { return encode_buffer_; } in encode_buffer() function
306 Thread(ByteSpan chunk_buffer, ByteSpan encode_buffer) in Thread() argument
308 client_contexts_, server_contexts_, chunk_buffer, encode_buffer) {} in Thread()
/external/pigweed/pw_snapshot/
Dcpp_compile_test.cc25 std::byte encode_buffer[kMaxProtoSize]; in TEST() local
28 stream::MemoryWriter writer(encode_buffer); in TEST()
/external/pigweed/pw_thread/public/pw_thread/
Dthread_snapshot_service.h56 span<std::byte> encode_buffer,
59 : encode_buffer_(encode_buffer), in encode_buffer_() argument
/external/rust/crates/uuid/src/external/
Dserde_support.rs26 serializer.serialize_str(self.hyphenated().encode_lower(&mut Uuid::encode_buffer())) in serialize()
35 serializer.serialize_str(self.encode_lower(&mut Uuid::encode_buffer())) in serialize()
41 serializer.serialize_str(self.encode_lower(&mut Uuid::encode_buffer())) in serialize()
47 serializer.serialize_str(self.encode_lower(&mut Uuid::encode_buffer())) in serialize()
53 serializer.serialize_str(self.encode_lower(&mut Uuid::encode_buffer())) in serialize()
/external/pigweed/pw_metric/
Dmetric_service_pwpb.cc103 std::array<std::byte, kEncodeBufferSize> encode_buffer; in Get() local
105 PwpbMetricWriter writer(encode_buffer, raw_response); in Get()
/external/pigweed/pw_transfer/
Dtest_rpc_server.cc91 std::array<std::byte, kChunkSizeBytes> encode_buffer; variable
92 transfer::Thread<4, 4> transfer_thread(chunk_buffer, encode_buffer);
/external/pigweed/pw_transfer/integration_test/
Dclient.cc83 std::byte encode_buffer[kMaxPayloadSize]; in PerformTransferActions() local
84 transfer::Thread<2, 2> transfer_thread(chunk_buffer, encode_buffer); in PerformTransferActions()
Dserver.cc143 std::vector<std::byte> encode_buffer(config.chunk_size_bytes()); in RunServer() local
144 transfer::Thread<4, 4> transfer_thread(chunk_buffer, encode_buffer); in RunServer()

12