Home
last modified time | relevance | path

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

1234

/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.cc108 uint8_t ssrc_count = ByteReader<uint8_t>::ReadBigEndian(&data[8]); in ReadFecHeader()
115 uint32_t protected_ssrc = ByteReader<uint32_t>::ReadBigEndian(&data[12]); in ReadFecHeader()
116 uint16_t seq_num_base = ByteReader<uint16_t>::ReadBigEndian(&data[16]); in ReadFecHeader()
134 uint16_t mask_part0 = ByteReader<uint16_t>::ReadBigEndian(&packet_mask[0]); in ReadFecHeader()
155 uint32_t mask_part1 = ByteReader<uint32_t>::ReadBigEndian(&packet_mask[2]); in ReadFecHeader()
188 ByteReader<uint64_t>::ReadBigEndian(&packet_mask[6]); in ReadFecHeader()
273 ByteReader<uint16_t>::ReadBigEndian(&packet_mask[0]); in FinalizeFecHeader()
275 ByteReader<uint32_t>::ReadBigEndian(&packet_mask[2]); in FinalizeFecHeader()
301 ByteReader<uint16_t>::ReadBigEndian(&packet_mask[0]); in FinalizeFecHeader()
Drtp_header_extensions.cc50 *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()
264 *rtp_time = ByteReader<int32_t, 3>::ReadBigEndian(data.data()); in Parse()
289 *transport_sequence_number = ByteReader<uint16_t>::ReadBigEndian(data.data()); in Parse()
331 *transport_sequence_number = ByteReader<uint16_t>::ReadBigEndian(data.data()); in Parse()
336 ByteReader<uint16_t>::ReadBigEndian(data.data() + 2); in Parse()
425 uint32_t raw = ByteReader<uint32_t, 3>::ReadBigEndian(data.data()); in Parse()
521 timing->flags = ByteReader<uint8_t>::ReadBigEndian(data.data()); in Parse()
527 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> {
/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 …]
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 …]
Dbytereader.h53 class ByteReader {
60 explicit ByteReader(enum Endianness endianness);
61 virtual ~ByteReader();
287 typedef uint64_t (ByteReader::*AddressReader)(const uint8_t *) const;
/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()
/external/cronet/net/der/
Dinput.cc40 ByteReader::ByteReader(const Input& in) in ByteReader() function in net::der::ByteReader
44 bool ByteReader::ReadByte(uint8_t* byte_p) { in ReadByte()
52 bool ByteReader::ReadBytes(size_t len, Input* out) { in ReadBytes()
61 bool ByteReader::HasMore() { in HasMore()
65 void ByteReader::Advance(size_t len) { in Advance()
Dparse_values.cc28 ByteReader data(in); in ParseBoolInternal()
50 bool DecimalStringToUint(ByteReader& in, size_t digits, UINT* out) { in DecimalStringToUint()
131 der::ByteReader reader(in); in GetUnsignedIntegerLength()
181 ByteReader reader(in); in ParseUint64()
238 ByteReader reader(in); in ParseBitString()
300 ByteReader reader(in); in ParseUTCTime()
325 ByteReader reader(in); in ParseGeneralizedTime()
Dinput_unittest.cc77 ByteReader reader(Input(nullptr, 0)); in TEST()
84 ByteReader reader((Input(kInput))); in TEST()
94 ByteReader reader((Input(kInput))); in TEST()
100 ByteReader reader((Input(kInput))); in TEST()
/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/test/fuzzers/
Dcongestion_controller_feedback_fuzzer.cc30 header.ssrc = ByteReader<uint32_t>::ReadBigEndian(&data[i]); in FuzzOneInput()
34 std::max<int64_t>(ByteReader<int64_t>::ReadBigEndian(&data[i]), 0), in FuzzOneInput()
40 size_t payload_size = ByteReader<size_t>::ReadBigEndian(&data[i]) % 1500; in FuzzOneInput()
43 ByteReader<uint16_t>::ReadBigEndian(&data[i]); in FuzzOneInput()
47 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.cc108 ByteReader<uint8_t>::ReadLittleEndian(&data_[data_ix_]); in FuzzHeader()
112 ByteReader<uint16_t>::ReadLittleEndian(&data_[data_ix_]); in FuzzHeader()
115 ByteReader<uint32_t>::ReadLittleEndian(&data_[data_ix_]); in FuzzHeader()
118 ByteReader<uint32_t>::ReadLittleEndian(&data_[data_ix_]); in FuzzHeader()
/external/webrtc/modules/video_coding/utility/
Divf_file_writer_unittest.cc77 EXPECT_EQ(0u, ByteReader<uint16_t>::ReadLittleEndian(&data[4])); in VerifyIvfHeader()
78 EXPECT_EQ(32u, ByteReader<uint16_t>::ReadLittleEndian(&data[6])); in VerifyIvfHeader()
80 EXPECT_EQ(width, ByteReader<uint16_t>::ReadLittleEndian(&data[12])); in VerifyIvfHeader()
81 EXPECT_EQ(height, ByteReader<uint16_t>::ReadLittleEndian(&data[14])); in VerifyIvfHeader()
83 ByteReader<uint32_t>::ReadLittleEndian(&data[16])); in VerifyIvfHeader()
84 EXPECT_EQ(1u, ByteReader<uint32_t>::ReadLittleEndian(&data[20])); in VerifyIvfHeader()
85 EXPECT_EQ(num_frames, ByteReader<uint32_t>::ReadLittleEndian(&data[24])); in VerifyIvfHeader()
86 EXPECT_EQ(0u, ByteReader<uint32_t>::ReadLittleEndian(&data[28])); in VerifyIvfHeader()
96 ByteReader<uint32_t>::ReadLittleEndian(&frame_header[0]); in VerifyDummyTestFrames()
99 ByteReader<uint64_t>::ReadLittleEndian(&frame_header[4]); in VerifyDummyTestFrames()
Divf_file_reader.cc76 width_ = ByteReader<uint16_t>::ReadLittleEndian(&ivf_header[12]); in Reset()
77 height_ = ByteReader<uint16_t>::ReadLittleEndian(&ivf_header[14]); in Reset()
83 time_scale_ = ByteReader<uint32_t>::ReadLittleEndian(&ivf_header[16]); in Reset()
90 ByteReader<uint32_t>::ReadLittleEndian(&ivf_header[24])); in Reset()
217 ByteReader<uint32_t>::ReadLittleEndian(&ivf_frame_header[0])); in ReadNextFrameHeader()
219 ByteReader<uint64_t>::ReadLittleEndian(&ivf_frame_header[4]); in ReadNextFrameHeader()
/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.java48 private final ByteReader byteReader;
50 private ConstantPoolReader(int[] constantPool, ByteReader byteReader) { in ConstantPoolReader()
59 public static ConstantPoolReader readConstantPool(ByteReader reader) { in readConstantPool()
70 private static int skipConstantPool(ByteReader reader) { in skipConstantPool()

1234