Home
last modified time | relevance | path

Searched refs:header_length (Results 1 – 25 of 47) sorted by relevance

12

/third_party/boost/libs/asio/example/cpp03/chat/
Dchat_message.hpp21 enum { header_length = 4 }; enumerator
41 return header_length + body_length_; in length()
46 return data_ + header_length; in body()
51 return data_ + header_length; in body()
69 char header[header_length + 1] = ""; in decode_header()
70 strncat(header, data_, header_length); in decode_header()
83 char header[header_length + 1] = ""; in encode_header()
85 memcpy(data_, header, header_length); in encode_header()
89 char data_[header_length + max_body_length];
Dchat_client.cpp55 boost::asio::buffer(read_msg_.data(), chat_message::header_length), in handle_connect()
83 boost::asio::buffer(read_msg_.data(), chat_message::header_length), in handle_read_body()
Dposix_chat_client.cpp47 boost::asio::buffer(read_msg_.data(), chat_message::header_length), in handle_connect()
100 boost::asio::buffer(read_msg_.data(), chat_message::header_length), in handle_write_output()
/third_party/boost/doc/html/boost_asio/example/cpp03/chat/
Dchat_message.hpp21 enum { header_length = 4 }; enumerator
41 return header_length + body_length_; in length()
46 return data_ + header_length; in body()
51 return data_ + header_length; in body()
69 char header[header_length + 1] = ""; in decode_header()
70 strncat(header, data_, header_length); in decode_header()
83 char header[header_length + 1] = ""; in encode_header()
85 memcpy(data_, header, header_length); in encode_header()
89 char data_[header_length + max_body_length];
Dchat_client.cpp55 boost::asio::buffer(read_msg_.data(), chat_message::header_length), in handle_connect()
83 boost::asio::buffer(read_msg_.data(), chat_message::header_length), in handle_read_body()
/third_party/boost/doc/html/boost_asio/example/cpp11/chat/
Dchat_message.hpp21 enum { header_length = 4 }; enumerator
41 return header_length + body_length_; in length()
46 return data_ + header_length; in body()
51 return data_ + header_length; in body()
68 char header[header_length + 1] = ""; in decode_header()
69 std::strncat(header, data_, header_length); in decode_header()
81 char header[header_length + 1] = ""; in encode_header()
83 std::memcpy(data_, header, header_length); in encode_header()
87 char data_[header_length + max_body_length];
/third_party/boost/libs/asio/example/cpp11/chat/
Dchat_message.hpp21 enum { header_length = 4 }; enumerator
41 return header_length + body_length_; in length()
46 return data_ + header_length; in body()
51 return data_ + header_length; in body()
68 char header[header_length + 1] = ""; in decode_header()
69 std::strncat(header, data_, header_length); in decode_header()
81 char header[header_length + 1] = ""; in encode_header()
83 std::memcpy(data_, header, header_length); in encode_header()
87 char data_[header_length + max_body_length];
/third_party/gstreamer/gstplugins_bad/gst/gdp/
Ddataprotocol.h80 GstBuffer * gst_dp_buffer_from_header (guint header_length,
84 GstCaps * gst_dp_caps_from_packet (guint header_length,
87 GstEvent * gst_dp_event_from_packet (guint header_length,
102 gboolean gst_dp_validate_header (guint header_length,
104 gboolean gst_dp_validate_payload (guint header_length,
107 gboolean gst_dp_validate_packet (guint header_length,
Ddataprotocol.c497 gst_dp_buffer_from_header (guint header_length, const guint8 * header, in gst_dp_buffer_from_header() argument
503 g_return_val_if_fail (header_length >= GST_DP_HEADER_LENGTH, NULL); in gst_dp_buffer_from_header()
537 gst_dp_caps_from_packet (guint header_length, const guint8 * header, in gst_dp_caps_from_packet() argument
544 g_return_val_if_fail (header_length >= GST_DP_HEADER_LENGTH, NULL); in gst_dp_caps_from_packet()
558 gst_dp_event_from_packet_0_2 (guint header_length, const guint8 * header, in gst_dp_event_from_packet_0_2() argument
613 gst_dp_event_from_packet_1_0 (guint header_length, const guint8 * header, in gst_dp_event_from_packet_1_0() argument
657 gst_dp_event_from_packet (guint header_length, const guint8 * header, in gst_dp_event_from_packet() argument
663 g_return_val_if_fail (header_length >= GST_DP_HEADER_LENGTH, NULL); in gst_dp_event_from_packet()
669 return gst_dp_event_from_packet_0_2 (header_length, header, payload); in gst_dp_event_from_packet()
671 return gst_dp_event_from_packet_1_0 (header_length, header, payload); in gst_dp_event_from_packet()
[all …]
/third_party/grpc/src/core/tsi/alts/zero_copy_frame_protector/
Dalts_grpc_integrity_only_record_protocol.cc48 unprotected_slices->length + rp->header_length + rp->tag_length; in alts_grpc_integrity_only_extra_copy_protect()
50 uint8_t* data = GRPC_SLICE_START_PTR(protected_slice) + rp->header_length; in alts_grpc_integrity_only_extra_copy_protect()
59 rp->header_length}; in alts_grpc_integrity_only_extra_copy_protect()
61 GRPC_SLICE_START_PTR(protected_slice) + rp->header_length + data_length, in alts_grpc_integrity_only_extra_copy_protect()
64 GRPC_SLICE_START_PTR(protected_slice) + rp->header_length; in alts_grpc_integrity_only_extra_copy_protect()
95 grpc_slice header_slice = GRPC_SLICE_MALLOC(rp->header_length); in alts_grpc_integrity_only_protect()
131 if (protected_slices->length < rp->header_length + rp->tag_length) { in alts_grpc_integrity_only_unprotect()
142 grpc_slice_buffer_move_first(protected_slices, rp->header_length, in alts_grpc_integrity_only_unprotect()
144 GPR_ASSERT(rp->header_sb.length == rp->header_length); in alts_grpc_integrity_only_unprotect()
Dalts_grpc_privacy_integrity_record_protocol.cc48 unprotected_slices->length + rp->header_length + in alts_grpc_privacy_integrity_protect()
85 if (protected_slices->length < rp->header_length + rp->tag_length) { in alts_grpc_privacy_integrity_unprotect()
90 protected_slices->length - rp->header_length - rp->tag_length; in alts_grpc_privacy_integrity_unprotect()
96 grpc_slice_buffer_move_first(protected_slices, rp->header_length, in alts_grpc_privacy_integrity_unprotect()
Dalts_grpc_record_protocol_common.cc76 header_iovec.iov_len = rp->header_length; in alts_grpc_record_protocol_get_header_iovec()
112 rp->header_length = alts_iovec_record_protocol_get_header_length(); in alts_grpc_record_protocol_init()
113 rp->header_buf = static_cast<unsigned char*>(gpr_malloc(rp->header_length)); in alts_grpc_record_protocol_init()
/third_party/ffmpeg/libavcodec/
Dhapenc.c76 enum HapHeaderLength header_length, in hap_write_section_header() argument
84 bytestream2_put_le24(pbc, header_length == HAP_HDR_LONG ? 0 : section_length); in hap_write_section_header()
87 if (header_length == HAP_HDR_LONG) { in hap_write_section_header()
198 int header_length = hap_header_length(ctx); in hap_encode() local
200 int pktsize = FFMAX(ctx->tex_size, ctx->max_snappy * ctx->chunk_count) + header_length; in hap_encode()
203 ret = ff_alloc_packet2(avctx, pkt, pktsize, header_length); in hap_encode()
209 ret = compress_texture(avctx, pkt->data + header_length, pkt->size - header_length, frame); in hap_encode()
222 final_data_size = hap_compress_frame(avctx, pkt->data + header_length); in hap_encode()
228 hap_write_frame_header(ctx, pkt->data, final_data_size + header_length); in hap_encode()
230 av_shrink_packet(pkt, final_data_size + header_length); in hap_encode()
/third_party/openssl/ssl/
Ds3_cbc.c145 size_t sslv3_pad_length = 40, header_length, variance_blocks, in ssl3_cbc_digest_record() local
242 header_length = 13; in ssl3_cbc_digest_record()
244 header_length = mac_secret_length + sslv3_pad_length + 8 /* sequence in ssl3_cbc_digest_record()
271 len = data_plus_mac_plus_padding_size + header_length; in ssl3_cbc_digest_record()
298 mac_end_offset = data_plus_mac_size + header_length - md_size; in ssl3_cbc_digest_record()
373 if (header_length <= md_block_size) { in ssl3_cbc_digest_record()
377 overhang = header_length - md_block_size; in ssl3_cbc_digest_record()
409 if (k < header_length) in ssl3_cbc_digest_record()
411 else if (k < data_plus_mac_plus_padding_size + header_length) in ssl3_cbc_digest_record()
412 b = data[k - header_length]; in ssl3_cbc_digest_record()
/third_party/grpc/test/core/tsi/alts/zero_copy_frame_protector/
Dalts_iovec_record_protocol_test.cc41 size_t header_length; member
157 var->header_length = alts_iovec_record_protocol_get_header_length(); in alts_iovec_record_protocol_test_var_create()
158 var->header_buf = static_cast<uint8_t*>(gpr_malloc(var->header_length)); in alts_iovec_record_protocol_test_var_create()
160 var->header_iovec.iov_len = var->header_length; in alts_iovec_record_protocol_test_var_create()
177 var->header_length + var->data_length + var->tag_length; in alts_iovec_record_protocol_test_var_create()
337 iovec_t header_iovec = {nullptr, var->header_length}; in integrity_only_protect_input_check()
382 iovec_t header_iovec = {nullptr, var->header_length}; in integrity_only_unprotect_input_check()
434 iovec_t header_iovec = {var->protected_buf, var->header_length}; in privacy_integrity_random_seal_unseal()
437 randomly_slice(var->protected_buf + var->header_length, in privacy_integrity_random_seal_unseal()
454 size_t empty_payload_frame_size = var->header_length + var->tag_length; in privacy_integrity_empty_seal_unseal()
[all …]
Dalts_grpc_record_protocol_test.cc46 size_t header_length; member
242 var->header_length = alts_iovec_record_protocol_get_header_length(); in alts_grpc_record_protocol_test_var_create()
284 data_length + var->header_length + var->tag_length); in random_seal_unseal()
308 var->header_length + var->tag_length); in empty_seal_unseal()
385 &var->protected_sb, var->header_length + var->tag_length - 1, &temp_sb); in input_check()
/third_party/boost/doc/html/boost_asio/example/cpp03/serialization/
Dconnection.hpp62 header_stream << std::setw(header_length) in async_write()
64 if (!header_stream || header_stream.str().size() != header_length) in async_write()
110 std::istringstream is(std::string(inbound_header_, header_length)); in handle_read_header()
169 enum { header_length = 8 }; enumerator
178 char inbound_header_[header_length];
/third_party/boost/libs/asio/example/cpp03/serialization/
Dconnection.hpp62 header_stream << std::setw(header_length) in async_write()
64 if (!header_stream || header_stream.str().size() != header_length) in async_write()
110 std::istringstream is(std::string(inbound_header_, header_length)); in handle_read_header()
169 enum { header_length = 8 }; enumerator
178 char inbound_header_[header_length];
/third_party/mesa3d/src/intel/tools/
Daub_read.c109 int header_length = p[0] & 0xffff; in handle_memtrace_version() local
111 int app_name_len = MIN2(4 * (header_length + 1 - 5), ARRAY_SIZE(app_name) - 1); in handle_memtrace_version()
137 int header_length = p[0] & 0xffff; in handle_trace_block() local
139 const void *data = p + header_length + 2; in handle_trace_block()
292 uint32_t h, header_length, bias; in aub_read_command() local
297 header_length = h & 0xffff; in aub_read_command()
311 next = p + header_length + bias; in aub_read_command()
/third_party/boost/doc/html/boost_asio/example/cpp03/icmp/
Dipv4_header.hpp57 unsigned short header_length() const { return (rep_[0] & 0xF) * 4; } in header_length() function in ipv4_header
87 std::streamsize options_length = header.header_length() - 20; in operator >>()
/third_party/boost/libs/asio/example/cpp03/icmp/
Dipv4_header.hpp57 unsigned short header_length() const { return (rep_[0] & 0xF) * 4; } in header_length() function in ipv4_header
87 std::streamsize options_length = header.header_length() - 20; in operator >>()
/third_party/python/Lib/email/
Dcharset.py341 length = encoder_module.header_length(_encode(this_line, charset))
366 len64 = email.base64mime.header_length(header_bytes)
367 lenqp = email.quoprimime.header_length(header_bytes)
/third_party/flutter/skia/third_party/externals/freetype/src/type1/
Dt1parse.c100 size_t header_length ) in check_type1_format() argument
120 if ( !FT_FRAME_ENTER( header_length ) ) in check_type1_format()
124 if ( ft_memcmp( stream->cursor, header_string, header_length ) != 0 ) in check_type1_format()
/third_party/freetype/src/type1/
Dt1parse.c99 size_t header_length ) in check_type1_format() argument
119 if ( !FT_FRAME_ENTER( header_length ) ) in check_type1_format()
123 if ( ft_memcmp( stream->cursor, header_string, header_length ) != 0 ) in check_type1_format()
/third_party/skia/third_party/externals/freetype/src/type1/
Dt1parse.c99 size_t header_length ) in check_type1_format() argument
119 if ( !FT_FRAME_ENTER( header_length ) ) in check_type1_format()
123 if ( ft_memcmp( stream->cursor, header_string, header_length ) != 0 ) in check_type1_format()

12