Home
last modified time | relevance | path

Searched refs:ByteReader (Results 1 – 25 of 70) sorted by relevance

123

/external/webrtc/modules/rtp_rtcp/source/
Dbyte_io_unittest.cc131 TestRead<uint16_t, ByteReader<uint16_t>::ReadBigEndian, sizeof(uint16_t)>( in TEST_F()
138 TestRead<uint32_t, ByteReader<uint32_t, 3>::ReadBigEndian, 3>(true); in TEST_F()
143 TestRead<uint32_t, ByteReader<uint32_t>::ReadBigEndian, sizeof(uint32_t)>( in TEST_F()
150 TestRead<uint64_t, ByteReader<uint64_t>::ReadBigEndian, sizeof(uint64_t)>( in TEST_F()
157 TestRead<int16_t, ByteReader<int16_t>::ReadBigEndian, sizeof(int16_t)>(true); in TEST_F()
163 TestRead<int32_t, ByteReader<int32_t, 3>::ReadBigEndian, 3>(true); in TEST_F()
168 TestRead<int32_t, ByteReader<int32_t>::ReadBigEndian, sizeof(int32_t)>(true); in TEST_F()
174 TestRead<int64_t, ByteReader<int64_t>::ReadBigEndian, sizeof(int64_t)>(true); in TEST_F()
180 TestRead<uint16_t, ByteReader<uint16_t>::ReadLittleEndian, sizeof(uint16_t)>( in TEST_F()
187 TestRead<uint32_t, ByteReader<uint32_t, 3>::ReadLittleEndian, 3>(false); in TEST_F()
[all …]
Dflexfec_header_reader_writer.cc103 uint8_t ssrc_count = ByteReader<uint8_t>::ReadBigEndian(&data[8]); in ReadFecHeader()
110 uint32_t protected_ssrc = ByteReader<uint32_t>::ReadBigEndian(&data[12]); in ReadFecHeader()
111 uint16_t seq_num_base = ByteReader<uint16_t>::ReadBigEndian(&data[16]); in ReadFecHeader()
129 uint16_t mask_part0 = ByteReader<uint16_t>::ReadBigEndian(&packet_mask[0]); in ReadFecHeader()
150 uint32_t mask_part1 = ByteReader<uint32_t>::ReadBigEndian(&packet_mask[2]); in ReadFecHeader()
183 ByteReader<uint64_t>::ReadBigEndian(&packet_mask[6]); in ReadFecHeader()
268 ByteReader<uint16_t>::ReadBigEndian(&packet_mask[0]); in FinalizeFecHeader()
270 ByteReader<uint32_t>::ReadBigEndian(&packet_mask[2]); in FinalizeFecHeader()
296 ByteReader<uint16_t>::ReadBigEndian(&packet_mask[0]); in FinalizeFecHeader()
Drtp_header_extensions.cc49 *time_24bits = ByteReader<uint32_t, 3>::ReadBigEndian(data.data()); in Parse()
110 ByteReader<uint64_t>::ReadBigEndian(data.data()); in Parse()
114 ByteReader<int64_t>::ReadBigEndian(data.data() + 8); in Parse()
213 *rtp_time = ByteReader<int32_t, 3>::ReadBigEndian(data.data()); in Parse()
239 *transport_sequence_number = ByteReader<uint16_t>::ReadBigEndian(data.data()); in Parse()
282 *transport_sequence_number = ByteReader<uint16_t>::ReadBigEndian(data.data()); in Parse()
287 ByteReader<uint16_t>::ReadBigEndian(data.data() + 2); in Parse()
378 uint32_t raw = ByteReader<uint32_t, 3>::ReadBigEndian(data.data()); in Parse()
476 timing->flags = ByteReader<uint8_t>::ReadBigEndian(data.data()); in Parse()
482 timing->encode_start_delta_ms = ByteReader<uint16_t>::ReadBigEndian( in Parse()
[all …]
Dbyte_io.h71 class ByteReader; variable
75 class ByteReader<T, B, false> {
105 class ByteReader<T, B, true> {
110 U unsigned_val = ByteReader<T, B, false>::ReadBigEndian(data); in ReadBigEndian()
117 U unsigned_val = ByteReader<T, B, false>::ReadLittleEndian(data); in ReadLittleEndian()
247 class ByteReader<T, 1, false> {
276 class ByteReader<T, 2, false> {
307 class ByteReader<T, 4, false> {
350 class ByteReader<T, 8, false> {
Drtp_utility.cc150 uint32_t SSRC = ByteReader<uint32_t>::ReadBigEndian(ptr); in ParseRtcp()
184 uint32_t RTPTimestamp = ByteReader<uint32_t>::ReadBigEndian(ptr); in Parse()
187 uint32_t SSRC = ByteReader<uint32_t>::ReadBigEndian(ptr); in Parse()
211 uint32_t CSRC = ByteReader<uint32_t>::ReadBigEndian(ptr); in Parse()
264 uint16_t definedByProfile = ByteReader<uint16_t>::ReadBigEndian(ptr); in Parse()
268 size_t XLen = ByteReader<uint16_t>::ReadBigEndian(ptr); in Parse()
363 ByteReader<int32_t, 3>::ReadBigEndian(ptr); in ParseOneByteExtensionHeader()
395 ByteReader<uint32_t, 3>::ReadBigEndian(ptr); in ParseOneByteExtensionHeader()
/external/google-breakpad/src/common/dwarf/
Dbytereader.cc38 ByteReader::ByteReader(enum Endianness endian) in ByteReader() function in dwarf2reader::ByteReader
44 ByteReader::~ByteReader() { } in ~ByteReader()
46 void ByteReader::SetOffsetSize(uint8_t size) { in SetOffsetSize()
50 this->offset_reader_ = &ByteReader::ReadFourBytes; in SetOffsetSize()
52 this->offset_reader_ = &ByteReader::ReadEightBytes; in SetOffsetSize()
56 void ByteReader::SetAddressSize(uint8_t size) { in SetAddressSize()
60 this->address_reader_ = &ByteReader::ReadFourBytes; in SetAddressSize()
62 this->address_reader_ = &ByteReader::ReadEightBytes; in SetAddressSize()
66 uint64_t ByteReader::ReadInitialLength(const uint8_t *start, size_t* len) { in ReadInitialLength()
83 bool ByteReader::ValidEncoding(DwarfPointerEncoding encoding) const { in ValidEncoding()
[all …]
Dbytereader-inl.h39 inline uint8_t ByteReader::ReadOneByte(const uint8_t *buffer) const { in ReadOneByte()
43 inline uint16_t ByteReader::ReadTwoBytes(const uint8_t *buffer) const { in ReadTwoBytes()
53 inline uint64_t ByteReader::ReadFourBytes(const uint8_t *buffer) const { in ReadFourBytes()
65 inline uint64_t ByteReader::ReadEightBytes(const uint8_t *buffer) const { in ReadEightBytes()
87 inline uint64_t ByteReader::ReadUnsignedLEB128(const uint8_t *buffer, in ReadUnsignedLEB128()
112 inline int64_t ByteReader::ReadSignedLEB128(const uint8_t *buffer, in ReadSignedLEB128()
132 inline uint64_t ByteReader::ReadOffset(const uint8_t *buffer) const { in ReadOffset()
137 inline uint64_t ByteReader::ReadAddress(const uint8_t *buffer) const { in ReadAddress()
142 inline void ByteReader::SetCFIDataBase(uint64_t section_base, in SetCFIDataBase()
149 inline void ByteReader::SetTextBase(uint64_t text_base) { in SetTextBase()
[all …]
Dbytereader_unittest.cc44 using dwarf2reader::ByteReader;
64 ByteReader reader(ENDIANNESS_BIG); in TEST_F()
92 ByteReader reader(ENDIANNESS_LITTLE); in TEST_F()
381 ByteReader reader(ENDIANNESS_BIG); in TEST_F()
390 ByteReader reader(ENDIANNESS_LITTLE); in TEST_F()
402 ByteReader reader(ENDIANNESS_LITTLE); in TEST_F()
412 ByteReader reader(ENDIANNESS_LITTLE); in TEST_F()
422 ByteReader reader(ENDIANNESS_BIG); in TEST_F()
432 ByteReader reader(ENDIANNESS_BIG); in TEST_F()
444 ByteReader reader(ENDIANNESS_LITTLE); in TEST_F()
[all …]
Dbytereader.h53 class ByteReader {
60 explicit ByteReader(enum Endianness endianness);
61 virtual ~ByteReader();
287 typedef uint64_t (ByteReader::*AddressReader)(const uint8_t *) const;
Ddwarf2reader.h94 ByteReader* reader, LineInfoHandler* handler);
116 static bool ProcessOneOpcode(ByteReader* reader,
136 ByteReader* reader_;
208 RangeListReader(const uint8_t *buffer, uint64_t size, ByteReader *reader,
216 ByteReader* reader_;
362 uint64_t offset, ByteReader* reader, Dwarf2Handler* handler);
526 ByteReader* reader_;
587 std::unique_ptr<ByteReader> dwp_byte_reader_;
608 DwpReader(const ByteReader& byte_reader, ElfReader* elf_reader);
631 const ByteReader& byte_reader_;
[all …]
/external/webrtc/modules/video_coding/utility/
Divf_file_writer_unittest.cc73 EXPECT_EQ(0u, ByteReader<uint16_t>::ReadLittleEndian(&data[4])); in VerifyIvfHeader()
74 EXPECT_EQ(32u, ByteReader<uint16_t>::ReadLittleEndian(&data[6])); in VerifyIvfHeader()
76 EXPECT_EQ(width, ByteReader<uint16_t>::ReadLittleEndian(&data[12])); in VerifyIvfHeader()
77 EXPECT_EQ(height, ByteReader<uint16_t>::ReadLittleEndian(&data[14])); in VerifyIvfHeader()
79 ByteReader<uint32_t>::ReadLittleEndian(&data[16])); in VerifyIvfHeader()
80 EXPECT_EQ(1u, ByteReader<uint32_t>::ReadLittleEndian(&data[20])); in VerifyIvfHeader()
81 EXPECT_EQ(num_frames, ByteReader<uint32_t>::ReadLittleEndian(&data[24])); in VerifyIvfHeader()
82 EXPECT_EQ(0u, ByteReader<uint32_t>::ReadLittleEndian(&data[28])); in VerifyIvfHeader()
92 ByteReader<uint32_t>::ReadLittleEndian(&frame_header[0]); in VerifyDummyTestFrames()
95 ByteReader<uint64_t>::ReadLittleEndian(&frame_header[4]); in VerifyDummyTestFrames()
Divf_file_reader.cc72 width_ = ByteReader<uint16_t>::ReadLittleEndian(&ivf_header[12]); in Reset()
73 height_ = ByteReader<uint16_t>::ReadLittleEndian(&ivf_header[14]); in Reset()
79 uint32_t time_scale = ByteReader<uint32_t>::ReadLittleEndian(&ivf_header[16]); in Reset()
90 ByteReader<uint32_t>::ReadLittleEndian(&ivf_header[24])); in Reset()
219 ByteReader<uint32_t>::ReadLittleEndian(&ivf_frame_header[0])); in ReadNextFrameHeader()
221 ByteReader<uint64_t>::ReadLittleEndian(&ivf_frame_header[4]); in ReadNextFrameHeader()
/external/webrtc/modules/rtp_rtcp/source/rtcp_packet/
Dreport_block.cc55 source_ssrc_ = ByteReader<uint32_t>::ReadBigEndian(&buffer[0]); in Parse()
57 cumulative_lost_ = ByteReader<int32_t, 3>::ReadBigEndian(&buffer[5]); in Parse()
58 extended_high_seq_num_ = ByteReader<uint32_t>::ReadBigEndian(&buffer[8]); in Parse()
59 jitter_ = ByteReader<uint32_t>::ReadBigEndian(&buffer[12]); in Parse()
60 last_sr_ = ByteReader<uint32_t>::ReadBigEndian(&buffer[16]); in Parse()
61 delay_since_last_sr_ = ByteReader<uint32_t>::ReadBigEndian(&buffer[20]); in Parse()
Dsender_report.cc64 SetSenderSsrc(ByteReader<uint32_t>::ReadBigEndian(&payload[0])); in Parse()
65 uint32_t secs = ByteReader<uint32_t>::ReadBigEndian(&payload[4]); in Parse()
66 uint32_t frac = ByteReader<uint32_t>::ReadBigEndian(&payload[8]); in Parse()
68 rtp_timestamp_ = ByteReader<uint32_t>::ReadBigEndian(&payload[12]); in Parse()
69 sender_packet_count_ = ByteReader<uint32_t>::ReadBigEndian(&payload[16]); in Parse()
70 sender_octet_count_ = ByteReader<uint32_t>::ReadBigEndian(&payload[20]); in Parse()
Ddlrr.cc47 ByteReader<uint16_t>::ReadBigEndian(&buffer[2])); in Parse()
57 sub_block.ssrc = ByteReader<uint32_t>::ReadBigEndian(&read_at[0]); in Parse()
58 sub_block.last_rr = ByteReader<uint32_t>::ReadBigEndian(&read_at[4]); in Parse()
60 ByteReader<uint32_t>::ReadBigEndian(&read_at[8]); in Parse()
Drrtr.cc33 RTC_DCHECK(ByteReader<uint16_t>::ReadBigEndian(&buffer[2]) == kBlockLength); in Parse()
34 uint32_t seconds = ByteReader<uint32_t>::ReadBigEndian(&buffer[4]); in Parse()
35 uint32_t fraction = ByteReader<uint32_t>::ReadBigEndian(&buffer[8]); in Parse()
Dloss_notification.cc103 if (ByteReader<uint32_t>::ReadBigEndian(&payload[8]) != kUniqueIdentifier) { in Parse()
109 last_decoded_ = ByteReader<uint16_t>::ReadBigEndian(&payload[12]); in Parse()
112 ByteReader<uint16_t>::ReadBigEndian(&payload[14]); in Parse()
Drtpfb.cc35 SetSenderSsrc(ByteReader<uint32_t>::ReadBigEndian(&payload[0])); in ParseCommonFeedback()
36 SetMediaSsrc(ByteReader<uint32_t>::ReadBigEndian(&payload[4])); in ParseCommonFeedback()
Dpsfb.cc37 SetSenderSsrc(ByteReader<uint32_t>::ReadBigEndian(&payload[0])); in ParseCommonFeedback()
38 SetMediaSsrc(ByteReader<uint32_t>::ReadBigEndian(&payload[4])); in ParseCommonFeedback()
/external/webrtc/test/fuzzers/
Dcongestion_controller_feedback_fuzzer.cc27 header.ssrc = ByteReader<uint32_t>::ReadBigEndian(&data[i]); in FuzzOneInput()
31 std::max<int64_t>(ByteReader<int64_t>::ReadBigEndian(&data[i]), 0), in FuzzOneInput()
37 size_t payload_size = ByteReader<size_t>::ReadBigEndian(&data[i]) % 1500; in FuzzOneInput()
40 ByteReader<uint16_t>::ReadBigEndian(&data[i]); in FuzzOneInput()
44 arrival_time_ms += ByteReader<uint8_t>::ReadBigEndian(&data[i]); in FuzzOneInput()
Dulpfec_receiver_fuzzer.cc33 uint32_t ulpfec_ssrc = ByteReader<uint32_t>::ReadLittleEndian(data + 0); in FuzzOneInput()
34 uint16_t ulpfec_seq_num = ByteReader<uint16_t>::ReadLittleEndian(data + 4); in FuzzOneInput()
35 uint32_t media_ssrc = ByteReader<uint32_t>::ReadLittleEndian(data + 6); in FuzzOneInput()
36 uint16_t media_seq_num = ByteReader<uint16_t>::ReadLittleEndian(data + 10); in FuzzOneInput()
Dneteq_rtp_fuzzer.cc104 ByteReader<uint8_t>::ReadLittleEndian(&data_[data_ix_]); in FuzzHeader()
108 ByteReader<uint16_t>::ReadLittleEndian(&data_[data_ix_]); in FuzzHeader()
111 ByteReader<uint32_t>::ReadLittleEndian(&data_[data_ix_]); in FuzzHeader()
114 ByteReader<uint32_t>::ReadLittleEndian(&data_[data_ix_]); in FuzzHeader()
/external/webrtc/modules/video_coding/codecs/multiplex/
Dmultiplex_encoded_image_packer.cc47 header.component_count = ByteReader<uint8_t>::ReadBigEndian(buffer + offset); in UnpackHeader()
50 header.image_index = ByteReader<uint16_t>::ReadBigEndian(buffer + offset); in UnpackHeader()
54 ByteReader<uint16_t>::ReadBigEndian(buffer + offset); in UnpackHeader()
58 ByteReader<uint32_t>::ReadBigEndian(buffer + offset); in UnpackHeader()
62 ByteReader<uint32_t>::ReadBigEndian(buffer + offset); in UnpackHeader()
104 ByteReader<uint32_t>::ReadBigEndian(buffer + offset); in UnpackFrameHeader()
108 ByteReader<uint8_t>::ReadBigEndian(buffer + offset); in UnpackFrameHeader()
112 ByteReader<uint32_t>::ReadBigEndian(buffer + offset); in UnpackFrameHeader()
116 ByteReader<uint32_t>::ReadBigEndian(buffer + offset); in UnpackFrameHeader()
122 ByteReader<uint8_t>::ReadBigEndian(buffer + offset)); in UnpackFrameHeader()
[all …]
/external/webrtc/modules/audio_coding/neteq/tools/
Dfake_decode_from_file.cc46 ByteReader<uint32_t>::ReadLittleEndian(&payload_.data()[8]); in IsDtxPacket()
89 ByteReader<uint32_t>::ReadLittleEndian(encoded); in DecodeInternal()
102 ByteReader<uint32_t>::ReadLittleEndian(&encoded[8]); in DecodeInternal()
130 : ByteReader<uint32_t>::ReadLittleEndian(&encoded[8]); in PacketDuration()
134 : ByteReader<uint32_t>::ReadLittleEndian(&encoded[4]); in PacketDuration()
/external/turbine/java/com/google/turbine/bytecode/
DConstantPoolReader.java47 private final ByteReader byteReader;
49 private ConstantPoolReader(int[] constantPool, ByteReader byteReader) { in ConstantPoolReader()
58 public static ConstantPoolReader readConstantPool(ByteReader reader) { in readConstantPool()
69 private static int skipConstantPool(ByteReader reader) { in skipConstantPool()

123