Home
last modified time | relevance | path

Searched refs:data_ix_ (Results 1 – 2 of 2) sorted by relevance

/external/webrtc/test/fuzzers/
Dfuzz_data_helper.h29 bool CanReadBytes(size_t n) const { return data_ix_ + n <= data_.size(); } in CanReadBytes()
35 T x = ByteReader<T>::ReadLittleEndian(&data_[data_ix_]); in Read()
36 data_ix_ += sizeof(T); in Read()
77 const size_t index_to_return = data_ix_; in ReadByteArray()
78 data_ix_ += bytes; in ReadByteArray()
89 memcpy(object, data_.data() + data_ix_, bytes_to_copy); in CopyTo()
90 data_ix_ += bytes_to_copy; in CopyTo()
93 size_t BytesRead() const { return data_ix_; } in BytesRead()
95 size_t BytesLeft() const { return data_.size() - data_ix_; } in BytesLeft()
99 size_t data_ix_ = 0; variable
Dneteq_rtp_fuzzer.cc97 if (data_ix_ + kNumBytesToFuzz > data_.size()) { in FuzzHeader()
102 const size_t start_ix = data_ix_; in FuzzHeader()
104 ByteReader<uint8_t>::ReadLittleEndian(&data_[data_ix_]); in FuzzHeader()
106 data_ix_ += sizeof(uint8_t); in FuzzHeader()
108 ByteReader<uint16_t>::ReadLittleEndian(&data_[data_ix_]); in FuzzHeader()
109 data_ix_ += sizeof(uint16_t); in FuzzHeader()
111 ByteReader<uint32_t>::ReadLittleEndian(&data_[data_ix_]); in FuzzHeader()
112 data_ix_ += sizeof(uint32_t); in FuzzHeader()
114 ByteReader<uint32_t>::ReadLittleEndian(&data_[data_ix_]); in FuzzHeader()
115 data_ix_ += sizeof(uint32_t); in FuzzHeader()
[all …]