Lines Matching defs:length
52 // length), and the offset where the actual payload starts.
56 // payload_length: The length of the payload.
57 // length_bytes: The section length, as it is encoded in the module bytes.
60 : // ID + length + payload
63 1 + length_bytes.length() + payload_length)),
64 payload_offset_(1 + length_bytes.length()) {
66 memcpy(bytes_.start() + 1, &length_bytes.first(), length_bytes.length());
77 offset_in_code_buffer + ref.length());
85 size_t length() const { return bytes_.size(); }
158 size_t length,
302 DCHECK_LE(cursor - bytes.start() + buffer->length(), total_size_);
303 memcpy(cursor, buffer->bytes().begin(), buffer->length());
304 cursor += buffer->length();
438 : DecodeVarInt32(max_module_size(), "section length"),
647 return streaming->Error("invalid code section length");
663 DCHECK_GE(kMaxInt, payload_buf.length());
664 int code_section_len = static_cast<int>(payload_buf.length());
687 // {value} is the length of the function.
688 if (value_ == 0) return streaming->Error("invalid function length (0)");
690 if (buffer_offset_ + bytes_consumed_ + value_ > section_buffer_->length()) {
712 if (end_offset != section_buffer_->length()) {
725 uint32_t module_offset, uint8_t section_id, size_t length,
730 module_offset, section_id, length, length_bytes));