Lines Matching defs:bytes

732   // Abstraction over the storage of the wire bytes. Held in a shared_ptr so
1913 // bytes of the temporary key and the new key have the same base pointer and
1914 // we can skip the full bytes comparison.
2052 bool ProcessModuleHeader(base::Vector<const uint8_t> bytes,
2056 base::Vector<const uint8_t> bytes,
2065 bool ProcessFunctionBody(base::Vector<const uint8_t> bytes,
2070 void OnFinishedStream(base::OwnedVector<uint8_t> bytes) override;
2094 // Running hash of the wire bytes up to code section size, but excluding the
2136 // TODO(wasm): Improve efficiency of storing module wire bytes. Only store
2160 // Create heap objects for script and module bytes to be stored in the
2495 // Decode the module bytes.
2758 base::Vector<const uint8_t> bytes, uint32_t offset) {
2763 decoder_.DecodeModuleHeader(bytes, offset);
2768 prefix_hash_ = NativeModuleCache::WireBytesHash(bytes);
2774 base::Vector<const uint8_t> bytes,
2786 NativeModuleCache::WireBytesHash(bytes));
2790 &decoder_, bytes, offset, &section_code);
2799 // Remove the unknown section tag from the payload bytes.
2801 bytes = bytes.SubVector(bytes_consumed, bytes.size());
2804 decoder_.DecodeSection(section_code, bytes, offset, verify_functions);
2866 base::Vector<const uint8_t> bytes, uint32_t offset) {
2870 num_functions_, static_cast<uint32_t>(bytes.length()), offset, false);
2885 // The native module does not own the wire bytes until {SetWireBytes} is
2886 // called in {OnFinishedStream}. Validation must use {bytes} parameter.
2888 ValidateSingleFunction(module, func_index, bytes, async_counters_.get(),
2923 base::OwnedVector<uint8_t> bytes) {
2925 DCHECK_EQ(NativeModuleCache::PrefixHash(bytes.as_vector()), prefix_hash_);
2932 job_->wire_bytes_ = ModuleWireBytes(bytes.as_vector());
2933 job_->bytes_copy_ = bytes.ReleaseData();
2963 // Record the size of the wire bytes. In synchronous and asynchronous
3723 // Defer logging code in case wire bytes were not fully received yet.