Home
last modified time | relevance | path

Searched refs:header_bytes (Results 1 – 25 of 51) sorted by relevance

123

/external/python/cpython3/Lib/email/
Dcharset.py293 header_bytes = _encode(string, codec)
295 encoder_module = self._get_encoder(header_bytes)
298 return encoder_module.header_encode(header_bytes, codec)
319 header_bytes = _encode(string, codec)
320 encoder_module = self._get_encoder(header_bytes)
353 header_bytes = _encode(joined_line, codec)
354 lines.append(encoder(header_bytes))
358 header_bytes = _encode(joined_line, codec)
359 lines.append(encoder(header_bytes))
362 def _get_encoder(self, header_bytes): argument
[all …]
Dbase64mime.py61 def header_encode(header_bytes, charset='iso-8859-1'): argument
67 if not header_bytes:
69 if isinstance(header_bytes, str):
70 header_bytes = header_bytes.encode(charset)
71 encoded = b64encode(header_bytes).decode("ascii")
Dquoprimime.py127 def header_encode(header_bytes, charset='iso-8859-1'): argument
139 if not header_bytes:
142 encoded = header_bytes.decode('latin1').translate(_QUOPRI_HEADER_MAP)
/external/tensorflow/tensorflow/core/kernels/
Dfixed_length_record_reader_op.cc35 FixedLengthRecordReader(const string& node_name, int64 header_bytes, in FixedLengthRecordReader() argument
40 header_bytes_(header_bytes), in FixedLengthRecordReader()
166 int64 header_bytes = -1, record_bytes = -1, footer_bytes = -1, in FixedLengthRecordReaderOp() local
168 OP_REQUIRES_OK(context, context->GetAttr("header_bytes", &header_bytes)); in FixedLengthRecordReaderOp()
172 OP_REQUIRES(context, header_bytes >= 0, in FixedLengthRecordReaderOp()
174 header_bytes)); in FixedLengthRecordReaderOp()
187 SetReaderFactory([this, header_bytes, record_bytes, footer_bytes, hop_bytes, in FixedLengthRecordReaderOp()
189 return new FixedLengthRecordReader(name(), header_bytes, record_bytes, in FixedLengthRecordReaderOp()
/external/webrtc/webrtc/modules/rtp_rtcp/source/
Dreceive_statistics_unittest.cc257 EXPECT_EQ(expected.header_bytes, actual.header_bytes); in MatchPacketCounter()
290 expected.transmitted.header_bytes = kHeaderLength; in TEST_F()
294 expected.retransmitted.header_bytes = 0; in TEST_F()
307 expected.transmitted.header_bytes = kHeaderLength * 2; in TEST_F()
317 expected.transmitted.header_bytes = kHeaderLength * 3; in TEST_F()
321 expected.retransmitted.header_bytes = kHeaderLength; in TEST_F()
335 expected.transmitted.header_bytes = kHeaderLength * 4; in TEST_F()
338 expected.fec.header_bytes = kHeaderLength; in TEST_F()
368 expected.transmitted.header_bytes = kHeaderLength; in TEST_F()
377 expected.fec.header_bytes = kHeaderLength; in TEST_F()
Drtp_sender_unittest.cc1125 EXPECT_EQ(expected.header_bytes, actual.header_bytes); in TEST_F()
1156 expected.transmitted.header_bytes = 12; in TEST_F()
1160 expected.retransmitted.header_bytes = 0; in TEST_F()
1170 expected.transmitted.header_bytes = 24; in TEST_F()
1173 expected.retransmitted.header_bytes = 12; in TEST_F()
1181 expected.transmitted.header_bytes = 36; in TEST_F()
1198 expected.transmitted.header_bytes = 60; in TEST_F()
1347 EXPECT_EQ(rtp_stats.transmitted.header_bytes, 12u); in TEST_F()
1350 EXPECT_EQ(rtx_stats.transmitted.header_bytes, 24u); in TEST_F()
1355 rtp_stats.transmitted.header_bytes + in TEST_F()
[all …]
Drtp_rtcp_impl_unittest.cc419 rtp.transmitted.header_bytes = 2; in TEST_F()
422 rtp.transmitted.header_bytes + in TEST_F()
429 rtp2.retransmitted.header_bytes = 4; in TEST_F()
440 EXPECT_EQ(2U, sum.transmitted.header_bytes); in TEST_F()
442 EXPECT_EQ(4U, sum.retransmitted.header_bytes); in TEST_F()
/external/webrtc/webrtc/
Dcommon_types.h826 : header_bytes(0), in RtpPacketCounter()
832 header_bytes += other.header_bytes; in Add()
840 header_bytes += header.headerLength; in AddPacket()
847 return header_bytes + payload_bytes + padding_bytes; in TotalBytes()
850 size_t header_bytes; // Number of bytes used by RTP headers. member
/external/tensorflow/tensorflow/core/kernels/data/
Dreader_dataset_ops.cc299 int64 header_bytes = -1; in MakeDataset() local
301 ctx, ParseScalarArgument<int64>(ctx, "header_bytes", &header_bytes)); in MakeDataset()
302 OP_REQUIRES(ctx, header_bytes >= 0, in MakeDataset()
334 *output = new Dataset(ctx, std::move(filenames), header_bytes, record_bytes, in MakeDataset()
342 int64 header_bytes, int64 record_bytes, int64 footer_bytes, in Dataset() argument
346 header_bytes_(header_bytes), in Dataset()
386 Node* header_bytes = nullptr; in AsGraphDefInternal() local
392 TF_RETURN_IF_ERROR(b->AddScalar(header_bytes_, &header_bytes)); in AsGraphDefInternal()
399 {filenames, header_bytes, record_bytes, footer_bytes, in AsGraphDefInternal()
/external/tensorflow/tensorflow/python/data/ops/
Dreaders.py288 header_bytes=None, argument
313 "header_bytes", header_bytes)
346 header_bytes=None, argument
351 filenames, record_bytes, header_bytes, footer_bytes, buffer_size,
/external/tensorflow/tensorflow/python/ops/
Dio_ops.py395 header_bytes=None, argument
412 header_bytes=header_bytes,
/external/tensorflow/tensorflow/lite/tutorials/
Ddataset.py108 images_file, 28 * 28, header_bytes=16).map(decode_image)
110 labels_file, 1, header_bytes=8).map(decode_label)
/external/python/oauth2client/tests/
Dtest_transport.py104 header_bytes = {b'key': b'val'}
107 self.assertEqual(result, header_bytes)
/external/u-boot/arch/x86/lib/
Dcoreboot_table.c59 cbh->header_bytes = sizeof(struct cb_header); in cb_table_init()
93 cbh->header_checksum = compute_ip_checksum(cbh, cbh->header_bytes); in cb_table_finalize()
/external/webrtc/webrtc/video/
Dsend_statistics_proxy_unittest.cc71 EXPECT_EQ(a.rtp_stats.transmitted.header_bytes, in ExpectEqual()
72 b.rtp_stats.transmitted.header_bytes); in ExpectEqual()
201 counters.transmitted.header_bytes = offset + 1; in TEST_F()
217 counters.transmitted.header_bytes = offset + 1; in TEST_F()
/external/grpc-grpc/src/core/lib/transport/
Dtransport.cc142 move64(&from->header_bytes, &to->header_bytes);
Dtransport.h87 uint64_t header_bytes; member
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_FixedLengthRecordDataset.pbtxt12 name: "header_bytes"
Dapi_def_FixedLengthRecordReader.pbtxt11 name: "header_bytes"
Dapi_def_FixedLengthRecordReaderV2.pbtxt13 name: "header_bytes"
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.-fixed-length-record-reader.pbtxt16 …argspec: "args=[\'self\', \'record_bytes\', \'header_bytes\', \'footer_bytes\', \'hop_bytes\', \'n…
/external/grpc-grpc/src/core/ext/transport/chttp2/transport/
Dframe_window_update.cc32 stats->header_bytes += frame_size; in grpc_chttp2_window_update_create()
Dhpack_encoder.cc156 st->stats->header_bytes += len; in add_header_data()
159 st->stats->header_bytes += remaining; in add_header_data()
169 st->stats->header_bytes += len; in add_tiny_header_data()
/external/webp/src/enc/
Dsyntax_enc.c294 enc->pic_->stats->header_bytes[0] = (int)((pos2 - pos1 + 7) >> 3); in GeneratePartition0()
295 enc->pic_->stats->header_bytes[1] = (int)((pos3 - pos2 + 7) >> 3); in GeneratePartition0()
/external/u-boot/arch/x86/cpu/coreboot/
Dtables.c140 ptr += header->header_bytes; in cb_parse_header()

123