Home
last modified time | relevance | path

Searched refs:header_size (Results 1 – 25 of 160) sorted by relevance

1234567

/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/
DChunk.java43 int header_size() { in header_size() method in Chunk
64 return new WithOffset(device_chunk_.myBuf(), device_chunk_.myOffset() + header_size()); in data_ptr()
68 return size() - header_size(); in data_size()
75 if (header_size() >= ResTable_header.SIZEOF) { in asResTable_header()
83 if (header_size() >= ResStringPool_header.SIZEOF) { in asResStringPool_header()
91 if (header_size() >= size) { in asResTable_package()
99 if (header_size() >= size) { in asResTable_type()
107 if (header_size() >= ResTable_lib_header.SIZEOF) { in asResTable_lib_header()
115 if (header_size() >= ResTable_lib_entry.SIZEOF) { in asResTable_lib_entry()
204 int header_size = dtohs(next_chunk_.headerSize); in VerifyNextChunk() local
[all …]
/external/webrtc/common_audio/
Dwav_header.cc149 uint32_t RiffChunkSize(size_t bytes_in_payload, size_t header_size) { in RiffChunkSize() argument
150 return static_cast<uint32_t>(bytes_in_payload + header_size - in RiffChunkSize()
208 size_t* header_size) { in WritePcmWavHeader() argument
210 RTC_CHECK(header_size); in WritePcmWavHeader()
211 *header_size = kPcmWavHeaderSize; in WritePcmWavHeader()
216 header.riff.header.Size = RiffChunkSize(bytes_in_payload, *header_size); in WritePcmWavHeader()
231 memcpy(buf, &header, *header_size); in WritePcmWavHeader()
239 size_t* header_size) { in WriteIeeeFloatWavHeader() argument
241 RTC_CHECK(header_size); in WriteIeeeFloatWavHeader()
242 *header_size = kIeeeFloatWavHeaderSize; in WriteIeeeFloatWavHeader()
[all …]
/external/puffin/src/
Dpuffpatch.cc108 uint32_t header_size; in DecodePatch() local
109 TEST_AND_RETURN_FALSE(patch_length >= (kMagicLength + sizeof(header_size))); in DecodePatch()
119 memcpy(&header_size, patch + offset, sizeof(header_size)); in DecodePatch()
120 header_size = be32toh(header_size); in DecodePatch()
121 offset += sizeof(header_size); in DecodePatch()
122 TEST_AND_RETURN_FALSE(header_size <= (patch_length - offset)); in DecodePatch()
125 TEST_AND_RETURN_FALSE(header.ParseFromArray(patch + offset, header_size)); in DecodePatch()
126 offset += header_size; in DecodePatch()
Dpuffdiff.cc73 const uint32_t header_size = header_size_long; in CreatePatch() local
76 patch->resize(kMagicLength + sizeof(header_size) + header_size + in CreatePatch()
83 uint32_t be_header_size = htobe32(header_size); in CreatePatch()
88 header.SerializeToArray(patch->data() + offset, header_size)); in CreatePatch()
89 offset += header_size; in CreatePatch()
/external/libchrome/mojo/core/
Duser_message_impl.cc48 uint32_t header_size; member
119 size_t header_size = safe_header_size.ValueOrDie(); in CreateOrExtendSerializedEventMessage() local
128 header_size += new_dispatcher_info[i].num_bytes; in CreateOrExtendSerializedEventMessage()
140 const size_t total_size = event_size + header_size + payload_size; in CreateOrExtendSerializedEventMessage()
142 event_size + header_size + payload_buffer_size; in CreateOrExtendSerializedEventMessage()
185 memcpy(reinterpret_cast<char*>(header) + header_size, in CreateOrExtendSerializedEventMessage()
204 if (!base::IsValueInRangeForNumericType<uint32_t>(header_size)) in CreateOrExtendSerializedEventMessage()
207 header->header_size = static_cast<uint32_t>(header_size); in CreateOrExtendSerializedEventMessage()
259 *out_header_size = header_size; in CreateOrExtendSerializedEventMessage()
260 *out_user_payload = reinterpret_cast<uint8_t*>(header) + header_size; in CreateOrExtendSerializedEventMessage()
[all …]
/external/arm-trusted-firmware/drivers/brcm/
Dscp.c49 unsigned int header_size; in download_scp_patch() local
63 header_size = 4 * (1 + 1 + 3 * num_sections + 1); in download_scp_patch()
65 if (image_size < header_size) { in download_scp_patch()
70 if (*(pheader + header_size/4 - 1) != SCP_BIN_HEADER_MAGIC_END) { in download_scp_patch()
76 pdata = (unsigned char *)pheader + header_size; in download_scp_patch()
/external/libchrome/base/
Dpickle.cc227 Pickle::Pickle(int header_size) in Pickle() argument
229 header_size_(bits::Align(header_size, sizeof(uint32_t))), in Pickle()
232 DCHECK_GE(static_cast<size_t>(header_size), sizeof(Header)); in Pickle()
233 DCHECK_LE(header_size, kPayloadUnit); in Pickle()
358 const char* Pickle::FindNext(size_t header_size, in FindNext() argument
362 if (!PeekNext(header_size, start, end, &pickle_size)) in FindNext()
372 bool Pickle::PeekNext(size_t header_size, in PeekNext() argument
376 DCHECK_EQ(header_size, bits::Align(header_size, sizeof(uint32_t))); in PeekNext()
377 DCHECK_GE(header_size, sizeof(Header)); in PeekNext()
378 DCHECK_LE(header_size, static_cast<size_t>(kPayloadUnit)); in PeekNext()
[all …]
Dpickle.h151 explicit Pickle(int header_size);
268 size_t header_size() const { return header_size_; } in header_size() function
291 static const char* FindNext(size_t header_size,
302 static bool PeekNext(size_t header_size,
/external/webrtc/video/
Dvideo_send_stream.cc35 size_t header_size = kRtpHeaderSize; in CalculateMaxHeaderSize() local
45 header_size += extensions_size; in CalculateMaxHeaderSize()
48 header_size += fec_extensions_size + 32; in CalculateMaxHeaderSize()
53 header_size += fec_extensions_size + 18; in CalculateMaxHeaderSize()
56 header_size += 1; // RED header. in CalculateMaxHeaderSize()
61 header_size += kRtxHeaderSize; in CalculateMaxHeaderSize()
62 return header_size; in CalculateMaxHeaderSize()
/external/android-clat/
Dtranslate.c368 size_t payload_size, header_size; in tcp_packet() local
385 header_size = tcp->doff * 4; in tcp_packet()
386 payload = ((const uint8_t *)tcp) + header_size; in tcp_packet()
387 payload_size = len - header_size; in tcp_packet()
389 return tcp_translate(out, pos, tcp, header_size, old_sum, new_sum, payload, payload_size); in tcp_packet()
443 size_t header_size, uint32_t old_sum, uint32_t new_sum, const uint8_t *payload, in tcp_translate() argument
446 out[pos].iov_len = header_size; in tcp_translate()
448 if (header_size > MAX_TCP_HDR) { in tcp_translate()
451 logmsg(ANDROID_LOG_ERROR, "tcp_translate: header too long %d > %d, truncating", header_size, in tcp_translate()
453 header_size = MAX_TCP_HDR; in tcp_translate()
[all …]
/external/libwebm/webm_parser/src/
Dmaster_parser.cc30 InitSetup(metadata.header_size, metadata.size, metadata.position); in Init()
60 child_metadata_.header_size = kUnknownHeaderSize; in InitAfterSeek()
102 child_metadata_.header_size = 0; in Feed()
106 child_metadata_.header_size += in Feed()
130 child_metadata_.header_size += in Feed()
145 child_metadata_.header_size += in Feed()
279 void MasterParser::InitSetup(std::uint32_t header_size, in InitSetup() argument
283 header_size_ = header_size; in InitSetup()
Dwebm_parser.cc48 child_metadata_.header_size = 0; in Feed()
57 child_metadata_.header_size += num_bytes_read; in Feed()
73 child_metadata_.header_size += num_bytes_read; in Feed()
112 child_metadata_.header_size = kUnknownHeaderSize; in Feed()
169 child_metadata_.header_size = 0; in Feed()
/external/libchrome/mojo/public/cpp/bindings/lib/
Dmessage_internal.cc34 const size_t header_size = in ComputeSerializedMessageSize() local
37 return Align(header_size + Align(payload_size) + in ComputeSerializedMessageSize()
41 return internal::Align(header_size + payload_size); in ComputeSerializedMessageSize()
/external/pigweed/pw_trace_tokenized/
Dtrace.cc117 size_t header_size = sizeof(trace_token); in HandleNextItemInQueue() local
125 header_size += pw::varint::Encode( in HandleNextItemInQueue()
127 std::span<std::byte>(&header[header_size], kMaxHeaderSize - header_size)); in HandleNextItemInQueue()
132 header_size += in HandleNextItemInQueue()
134 std::span<std::byte>(&header[header_size], in HandleNextItemInQueue()
135 kMaxHeaderSize - header_size)); in HandleNextItemInQueue()
140 std::span<const std::byte>(header, header_size), in HandleNextItemInQueue()
/external/rust/crates/nix/src/sys/
Dinotify.rs175 let header_size = size_of::<libc::inotify_event>(); in read_events() localVariable
183 while (nread - offset) >= header_size { in read_events()
189 (BUFSIZ - offset).min(header_size) in read_events()
200 .add(offset + header_size) in read_events()
216 offset += header_size + event.len as usize; in read_events()
/external/mesa3d/src/mesa/main/
Dprogram_binary.c238 unsigned header_size = get_program_binary_header_size(); in _mesa_get_program_binary() local
244 if (buf_size < header_size) in _mesa_get_program_binary()
248 if (blob.size + header_size > buf_size || in _mesa_get_program_binary()
257 *length = header_size + blob.size; in _mesa_get_program_binary()
275 unsigned header_size = get_program_binary_header_size(); in _mesa_program_binary() local
288 blob_reader_init(&blob, payload, length - header_size); in _mesa_program_binary()
/external/webrtc/modules/audio_coding/codecs/red/
Daudio_encoder_copy_red.cc61 size_t header_size = 1; in CalculateHeaderLength() local
63 header_size += 4; in CalculateHeaderLength()
66 header_size += 4; in CalculateHeaderLength()
68 return header_size > 1 ? header_size : 0; in CalculateHeaderLength()
/external/strace/tests-mx32/
Dnetlink_kobject_uevent.c54 .header_size = sizeof(uh), in test_nlmsg_type_udev()
77 ntohl(uh.magic), uh.header_size, uh.properties_off, in test_nlmsg_type_udev()
92 ntohl(uh.magic), uh.header_size, uh.properties_off, in test_nlmsg_type_udev()
115 .header_size = sizeof(uh), in test_nlmsg_type_kernel()
/external/strace/tests-m32/
Dnetlink_kobject_uevent.c54 .header_size = sizeof(uh), in test_nlmsg_type_udev()
77 ntohl(uh.magic), uh.header_size, uh.properties_off, in test_nlmsg_type_udev()
92 ntohl(uh.magic), uh.header_size, uh.properties_off, in test_nlmsg_type_udev()
115 .header_size = sizeof(uh), in test_nlmsg_type_kernel()
/external/strace/tests/
Dnetlink_kobject_uevent.c54 .header_size = sizeof(uh), in test_nlmsg_type_udev()
77 ntohl(uh.magic), uh.header_size, uh.properties_off, in test_nlmsg_type_udev()
92 ntohl(uh.magic), uh.header_size, uh.properties_off, in test_nlmsg_type_udev()
115 .header_size = sizeof(uh), in test_nlmsg_type_kernel()
/external/libwebm/webm_parser/include/webm/
Delement.h149 std::uint32_t header_size; member
176 return id == other.id && header_size == other.header_size &&
/external/google-breakpad/src/processor/
Dmap_serializers-inl.h58 size_t header_size = (1 + m.size()) * sizeof(uint32_t); in SizeOf() local
59 size += header_size; in SizeOf()
122 size_t header_size = (1 + m.map_.size()) * sizeof(uint32_t); in SizeOf() local
123 size += header_size; in SizeOf()
193 size_t header_size = addr_serializer_.SizeOf(m->base_) in SizeOf() local
196 size += header_size; in SizeOf()
/external/libaom/libaom/common/
Dobudec.c149 size_t header_size = 0; in obudec_read_obu_header_and_size() local
152 &header_size) != 0) { in obudec_read_obu_header_and_size()
154 } else if (header_size == 0) { in obudec_read_obu_header_and_size()
161 if (obu_size < header_size) { in obudec_read_obu_header_and_size()
165 *payload_length = (size_t)obu_size - header_size; in obudec_read_obu_header_and_size()
168 if (obudec_read_leb128(f, &buffer[leb128_length_obu + header_size], in obudec_read_obu_header_and_size()
181 *bytes_read = leb128_length_obu + header_size + leb128_length_payload; in obudec_read_obu_header_and_size()
/external/webrtc/media/base/
Drtp_utils.cc217 size_t header_size = kMinRtpPacketLen + (header[0] & 0xF) * sizeof(uint32_t); in GetRtpHeaderLen() local
218 if (len < header_size) in GetRtpHeaderLen()
222 if (len < header_size + sizeof(uint32_t)) in GetRtpHeaderLen()
224 header_size += in GetRtpHeaderLen()
225 ((rtc::GetBE16(header + header_size + 2) + 1) * sizeof(uint32_t)); in GetRtpHeaderLen()
226 if (len < header_size) in GetRtpHeaderLen()
229 *value = header_size; in GetRtpHeaderLen()
/external/pigweed/pw_allocator/py/pw_allocator/
Dheap_viewer.py128 header_size = pointer_size * 2
165 next_mem_offset = heap_size + header_size + poison_offset + 1
221 next_mem_offset = (heap_size + header_size +
229 if (next_mem_offset - header_size - poison_offset <=

1234567