Home | History | Annotate | Download | only in wasm

Lines Matching refs:BYTES

130   // Consume bytes before validation to guarantee that the string is not oob.
186 "(%u bytes expected, %zu decoded)",
246 // The main logic for decoding the bytes of a module.
304 void DecodeModuleHeader(Vector<const uint8_t> bytes, uint8_t offset) {
306 Reset(bytes, offset);
310 #define BYTES(x) (x & 0xFF), (x >> 8) & 0xFF, (x >> 16) & 0xFF, (x >> 24) & 0xFF
315 BYTES(kWasmMagic), BYTES(magic_word));
325 BYTES(kWasmVersion), BYTES(magic_version));
328 #undef BYTES
331 void DecodeSection(SectionCode section_code, Vector<const uint8_t> bytes,
334 Reset(bytes, offset);
336 TRACE("Decode Section %p - %p\n", static_cast<const void*>(bytes.begin()),
337 static_cast<const void*>(bytes.end()));
416 if (pc() != bytes.end()) {
417 const char* msg = pc() < bytes.end() ? "shorter" : "longer";
420 "(%zu bytes expected, %zu decoded)",
421 msg, bytes.size(), static_cast<size_t>(pc() - bytes.begin()));
777 ModuleWireBytes bytes(start_, end_);
779 index + module_->num_imported_functions, bytes,
1443 void ModuleDecoder::DecodeModuleHeader(Vector<const uint8_t> bytes,
1445 impl_->DecodeModuleHeader(bytes, offset);
1449 Vector<const uint8_t> bytes, uint32_t offset,
1451 impl_->DecodeSection(section_code, bytes, offset, verify_functions);
1569 if (decoder.more()) decoder.error("unexpected additional bytes");
1588 decoder.consume_bytes(section_length, "section bytes");