Home
last modified time | relevance | path

Searched refs:payload_length (Results 1 – 25 of 63) sorted by relevance

123

/external/grpc-grpc/test/core/tsi/alts/frame_protector/
Dframe_handler_test.cc39 static size_t frame_length(size_t payload_length) { in frame_length() argument
40 return payload_length + kFrameHeaderSize; in frame_length()
63 size_t payload_length, size_t write_length) { in frame() argument
64 handler->buffer_size = frame_length(payload_length); in frame()
67 GPR_ASSERT(alts_reset_frame_writer(handler->writer, payload, payload_length)); in frame()
97 size_t payload_length, size_t write_length, in frame_n_deframe() argument
99 frame(handler, payload, payload_length, write_length); in frame_n_deframe()
103 GPR_ASSERT(payload_length == deframed_payload_length); in frame_n_deframe()
104 GPR_ASSERT(memcmp(payload, bytes, payload_length) == 0); in frame_n_deframe()
110 size_t payload_length = strlen((char*)payload) + 1; in frame_handler_test_frame_deframe() local
[all …]
/external/webrtc/webrtc/modules/audio_coding/neteq/
Dpayload_splitter.cc61 new_packet->payload_length = red_packet->payload_length - sum_length; in SplitRed()
71 new_packet->payload_length = ((payload_ptr[2] & 0x03) << 8) + in SplitRed()
76 sum_length += new_packet->payload_length; in SplitRed()
86 size_t payload_length = (*new_it)->payload_length; in SplitRed() local
87 if (payload_ptr + payload_length > in SplitRed()
88 red_packet->payload + red_packet->payload_length) { in SplitRed()
102 (*new_it)->payload = new uint8_t[payload_length]; in SplitRed()
103 memcpy((*new_it)->payload, payload_ptr, payload_length); in SplitRed()
104 payload_ptr += payload_length; in SplitRed()
149 !decoder->PacketHasFec(packet->payload, packet->payload_length)) { in SplitFec()
[all …]
Dpayload_splitter_unittest.cc47 void CreateOpusFecPayload(uint8_t* payload, size_t payload_length, in CreateOpusFecPayload() argument
49 if (payload_length < 2) { in CreateOpusFecPayload()
54 memset(&payload[2], payload_value, payload_length - 2); in CreateOpusFecPayload()
83 packet->payload_length = (kPayloadLength + 1) + in CreateRedPayload()
85 uint8_t* payload = new uint8_t[packet->payload_length]; in CreateRedPayload()
123 Packet* CreatePacket(uint8_t payload_type, size_t payload_length, in CreatePacket() argument
129 packet->payload_length = payload_length; in CreatePacket()
130 uint8_t* payload = new uint8_t[packet->payload_length]; in CreatePacket()
133 CreateOpusFecPayload(packet->payload, packet->payload_length, in CreatePacket()
136 memset(payload, payload_value, payload_length); in CreatePacket()
[all …]
Dpacket.h25 size_t payload_length; member
33 payload_length(0), in Packet()
/external/wpa_supplicant_8/src/wps/
Dndef.c28 u32 payload_length; member
46 record->payload_length = *pos++; in ndef_parse_record()
55 record->payload_length = len; in ndef_parse_record()
72 record->payload = record->payload_length == 0 ? NULL : pos; in ndef_parse_record()
73 pos += record->payload_length; in ndef_parse_record()
77 record->total_length < record->payload_length) in ndef_parse_record()
97 record.payload_length); in ndef_parse_records()
115 size_t payload_length = wpabuf_len(payload); in ndef_build_record() local
117 short_record = payload_length < 256 ? 1 : 0; in ndef_build_record()
124 total_len += type_length + id_length + payload_length; in ndef_build_record()
[all …]
/external/libaom/libaom/common/
Dobudec.c108 static int obudec_read_obu_payload(FILE *f, size_t payload_length, in obudec_read_obu_payload() argument
110 if (!f || payload_length == 0 || !obu_data || !bytes_read) return -1; in obudec_read_obu_payload()
112 if (fread(obu_data, 1, payload_length, f) != payload_length) { in obudec_read_obu_payload()
117 *bytes_read += payload_length; in obudec_read_obu_payload()
124 size_t *payload_length, in obudec_read_obu_header_and_size() argument
127 if (!f || !buffer || !bytes_read || !payload_length || !obu_header || in obudec_read_obu_header_and_size()
140 *payload_length = 0; in obudec_read_obu_header_and_size()
155 *payload_length = 0; in obudec_read_obu_header_and_size()
165 *payload_length = (size_t)obu_size - header_size; in obudec_read_obu_header_and_size()
178 *payload_length = (size_t)u64_payload_length; in obudec_read_obu_header_and_size()
[all …]
/external/v8/src/snapshot/
Dsnapshot-common.cc256 uint32_t payload_length = in CreateSnapshotBlob() local
260 payload_length); in CreateSnapshotBlob()
263 payload_length, in CreateSnapshotBlob()
266 payload_offset += payload_length; in CreateSnapshotBlob()
270 payload_length = builtin_snapshot->RawData().length(); in CreateSnapshotBlob()
273 payload_length); in CreateSnapshotBlob()
275 PrintF("%10d bytes for builtins\n", payload_length); in CreateSnapshotBlob()
277 payload_offset += payload_length; in CreateSnapshotBlob()
283 payload_length = context_snapshot->RawData().length(); in CreateSnapshotBlob()
287 payload_length); in CreateSnapshotBlob()
[all …]
/external/webrtc/webrtc/modules/rtp_rtcp/source/
Drtp_receiver_audio.cc185 size_t payload_length, in ParseRtpPacket() argument
202 payload_length, in ParseRtpPacket()
282 size_t payload_length, in ParseAudioCodecSpecific() argument
286 if (payload_length == 0) { in ParseAudioCodecSpecific()
302 if (payload_length % 4 != 0) { in ParseAudioCodecSpecific()
305 size_t number_of_events = payload_length / 4; in ParseAudioCodecSpecific()
378 payload_data + 1, payload_length - 1, rtp_header); in ParseAudioCodecSpecific()
383 payload_data, payload_length, rtp_header); in ParseAudioCodecSpecific()
Drtp_receiver_video.cc56 size_t payload_length, in ParseRtpPacket() argument
64 RTC_DCHECK_GE(payload_length, rtp_header->header.paddingLength); in ParseRtpPacket()
66 payload_length - rtp_header->header.paddingLength; in ParseRtpPacket()
97 parsed_payload.payload_length, in ParseRtpPacket()
Dproducer_fec.cc124 size_t payload_length, in BuildRedPacket() argument
128 payload_length + kREDForFECHeaderLength + rtp_header_length); in BuildRedPacket()
132 red_packet->AssignPayload(data_buffer + rtp_header_length, payload_length); in BuildRedPacket()
137 size_t payload_length, in AddRtpPacketAndGenerateFec() argument
148 packet->length = payload_length + rtp_header_length; in AddRtpPacketAndGenerateFec()
Drtp_sender_video.cc99 const size_t payload_length, in SendVideoPacket() argument
105 if (_rtpSender.SendToNetwork(data_buffer, payload_length, rtp_header_length, in SendVideoPacket()
108 _videoBitrate.Update(payload_length + rtp_header_length); in SendVideoPacket()
118 const size_t payload_length, in SendVideoPacketAsRed() argument
133 data_buffer, payload_length, rtp_header_length, red_payload_type_)); in SendVideoPacketAsRed()
135 producer_fec_.AddRtpPacketAndGenerateFec(data_buffer, payload_length, in SendVideoPacketAsRed()
Drtp_payload_registry_unittest.cc260 size_t payload_length, in GenerateRtxPacket() argument
263 new uint8_t[kRtxHeaderSize + header_length + payload_length](); in GenerateRtxPacket()
287 size_t payload_length = 200; in TestRtxPacket() local
288 size_t original_length = header_length + payload_length + kRtxHeaderSize; in TestRtxPacket()
300 header_length, payload_length, original_sequence_number)); in TestRtxPacket()
302 new uint8_t[header_length + payload_length]); in TestRtxPacket()
Drtp_receiver_impl.cc163 size_t payload_length, in IncomingRtpPacket() argument
169 int8_t first_payload_byte = payload_length > 0 ? payload[0] : 0; in IncomingRtpPacket()
174 if (payload_length == 0) { in IncomingRtpPacket()
187 size_t payload_data_length = payload_length - rtp_header.paddingLength; in IncomingRtpPacket()
202 &webrtc_rtp_header, payload_specific, is_red, payload, payload_length, in IncomingRtpPacket()
Drtp_format_vp9.cc668 size_t payload_length) { in Parse() argument
670 if (payload_length == 0) { in Parse()
676 rtc::BitBuffer parser(payload, payload_length); in Parse()
733 parsed_payload->payload_length = rem_bits / 8; in Parse()
734 if (parsed_payload->payload_length == 0) { in Parse()
739 payload + payload_length - parsed_payload->payload_length; in Parse()
Dproducer_fec.h51 size_t payload_length,
56 size_t payload_length,
/external/perfetto/src/protozero/
Dproto_decoder.cc89 uint64_t payload_length; in ParseOneField() local
90 new_pos = ParseVarInt(pos, end, &payload_length); in ParseOneField()
95 if (payload_length > static_cast<uint64_t>(end - new_pos)) in ParseOneField()
99 if (PERFETTO_LIKELY(payload_length <= proto_utils::kMaxMessageLength)) { in ParseOneField()
102 size = static_cast<uint32_t>(payload_length); in ParseOneField()
105 new_pos += payload_length; in ParseOneField()
/external/bcc/examples/networking/http_filter/
Dhttp-parse-simple.c35 u32 payload_length = 0; in http_filter() local
59 payload_length = ip->tlen - ip_header_length - tcp_header_length; in http_filter()
65 if(payload_length < 7) { in http_filter()
Dhttp-parse-complete.c55 u32 payload_length = 0; in http_filter() local
88 payload_length = ip->tlen - ip_header_length - tcp_header_length; in http_filter()
94 if(payload_length < 7) { in http_filter()
/external/android-clat/
Dclatd_test.cpp212 size_t payload_length = 0; in check_packet() local
226 payload_length = len - sizeof(*ip); in check_packet()
227 pseudo_checksum = ipv4_pseudo_header_checksum(ip, payload_length); in check_packet()
246 payload_length = len - sizeof(*ip6) - sizeof(*frag); in check_packet()
252 payload_length = len - sizeof(*ip6); in check_packet()
256 if (payload_length) { in check_packet()
257 pseudo_checksum = ipv6_pseudo_header_checksum(ip6, payload_length, protocol); in check_packet()
267 if (payload_length) { in check_packet()
273 checksum = ip_checksum_finish(ip_checksum_add(pseudo_checksum, payload, payload_length)); in check_packet()
276 checksum = ip_checksum(payload, payload_length); in check_packet()
[all …]
/external/webrtc/webrtc/test/
Dlayer_filtering_transport.cc60 const size_t payload_length = length - header.headerLength; in SendRtp() local
61 RTC_DCHECK_GT(payload_length, header.paddingLength); in SendRtp()
62 const size_t payload_data_length = payload_length - header.paddingLength; in SendRtp()
Drtp_file_reader.cc359 if (*length < next_packet_it_->payload_length) { in NextPcap()
363 TRY_PCAP(Read(data, next_packet_it_->payload_length)); in NextPcap()
364 *length = next_packet_it_->payload_length; in NextPcap()
382 uint32_t payload_length; member
450 if (marker.payload_length > sizeof(read_buffer_)) { in ReadPacket()
454 TRY_PCAP(Read(read_buffer_, marker.payload_length)); in ReadPacket()
456 RtpUtility::RtpHeaderParser rtp_parser(read_buffer_, marker.payload_length); in ReadPacket()
570 marker->payload_length = length - kUdpHeaderLength; in ReadXxpIpHeader()
/external/v8/src/wasm/
Dstreaming-decoder.h88 SectionBuffer(uint32_t module_offset, uint8_t id, size_t payload_length, in SectionBuffer() argument
92 length_(1 + length_bytes.length() + payload_length), in SectionBuffer()
107 size_t payload_length() const { return length_ - payload_offset_; } in payload_length() function
110 payload_length()); in payload()
/external/tcpdump/
Dprint-geonet.c115 uint16_t payload_length; in geonet_print() local
135 payload_length = EXTRACT_16BITS(bp+4); in geonet_print()
177 ND_PRINT((ndo, "Payload:%d ", payload_length)); in geonet_print()
/external/webrtc/webrtc/modules/rtp_rtcp/test/testAPI/
Dtest_api_video.cc179 const size_t payload_length = packet_size - header.headerLength; in TEST_F() local
181 payload_length, in TEST_F()
184 EXPECT_EQ(payload_length, receiver_->rtp_header().header.paddingLength); in TEST_F()
/external/libchrome/mojo/public/cpp/platform/
Dsocket_utils_posix.cc155 size_t payload_length = cmsg->cmsg_len - CMSG_LEN(0); in SocketRecvmsg() local
156 DCHECK_EQ(payload_length % sizeof(int), 0u); in SocketRecvmsg()
157 size_t num_fds = payload_length / sizeof(int); in SocketRecvmsg()

123