Lines Matching refs:validate
72 template <ValidateFlag validate>
74 return read_little_endian<uint8_t, validate>(pc, msg);
78 template <ValidateFlag validate>
81 return read_little_endian<uint16_t, validate>(pc, msg);
85 template <ValidateFlag validate>
88 return read_little_endian<uint32_t, validate>(pc, msg);
92 template <ValidateFlag validate>
95 return read_little_endian<uint64_t, validate>(pc, msg);
99 template <ValidateFlag validate>
102 return read_leb<uint32_t, validate, kNoAdvancePc, kNoTrace>(pc, length,
107 template <ValidateFlag validate>
110 return read_leb<int32_t, validate, kNoAdvancePc, kNoTrace>(pc, length,
115 template <ValidateFlag validate>
118 return read_leb<uint64_t, validate, kNoAdvancePc, kNoTrace>(pc, length,
123 template <ValidateFlag validate>
126 return read_leb<int64_t, validate, kNoAdvancePc, kNoTrace>(pc, length,
276 template <typename IntType, bool validate>
278 if (!validate) { in read_little_endian()
301 template <typename IntType, ValidateFlag validate, AdvancePCFlag advance_pc,
307 return read_leb_tail<IntType, validate, advance_pc, trace, 0>(pc, length,
311 template <typename IntType, ValidateFlag validate, AdvancePCFlag advance_pc,
321 const bool at_end = validate && pc == end_; in read_leb_tail()
334 return read_leb_tail<IntType, validate, advance_pc, trace, in read_leb_tail()
339 if (validate && (at_end || (b & 0x80))) { in read_leb_tail()
358 if (!validate) { in read_leb_tail()