Lines Matching defs:bytes
124 // Consume bytes before validation to guarantee that the string is not oob.
215 "(%u bytes expected, %zu decoded)",
253 // To identify the unknown section we set the end of the decoder bytes to
281 // The main logic for decoding the bytes of a module.
342 void DecodeModuleHeader(base::Vector<const uint8_t> bytes, uint8_t offset) {
344 Reset(bytes, offset);
394 base::Vector<const uint8_t> bytes, uint32_t offset,
397 Reset(bytes, offset);
399 TRACE("Decode Section %p - %p\n", bytes.begin(), bytes.end());
549 if (pc() != bytes.end()) {
550 const char* msg = pc() < bytes.end() ? "shorter" : "longer";
553 "(%zu bytes expected, %zu decoded)",
554 msg, bytes.size(), static_cast<size_t>(pc() - bytes.begin()));
1147 ModuleWireBytes bytes(module_start_, module_end_);
1149 index + module_->num_imported_functions, bytes,
1424 // Extra unexpected bytes are an error.
1426 inner.errorf("Unexpected extra bytes: %d\n",
2292 void ModuleDecoder::DecodeModuleHeader(base::Vector<const uint8_t> bytes,
2294 impl_->DecodeModuleHeader(bytes, offset);
2298 base::Vector<const uint8_t> bytes,
2300 impl_->DecodeSection(section_code, bytes, offset, verify_functions);
2324 base::Vector<const uint8_t> bytes,
2328 decoder->impl_->Reset(bytes, offset);
2330 return decoder->impl_->pc() - bytes.begin();
2439 decoder.consume_bytes(section_length, "section bytes");