Lines Matching defs:length

227     size_t length = Read<size_t>();
230 Debug("ReadString(), length=%d: ", length);
233 CHECK_GT(length, 0); // There should be no empty strings.
234 MallocedBuffer<char> buf(length + 1);
235 memcpy(buf.data, sink.data() + read_total, length + 1);
236 std::string result(buf.data, length); // This creates a copy of buf.data.
239 Debug("\"%s\", read %zu bytes\n", result.c_str(), length + 1);
242 read_total += length + 1;
349 // [ 4/8 bytes ] length
350 // [ |length| bytes ] contents
356 Debug("WriteString(), length=%zu: \"%s\"\n", data.size(), data.c_str());
360 size_t length = data.size() + 1;
361 sink.insert(sink.end(), data.c_str(), data.c_str() + length);
362 written_total += length;
424 // [ 4/8 bytes ] length
425 // [ |length| bytes ] contents
466 // [ 4/8 bytes ] length of the module id string
467 // [ ... ] |length| bytes of module id
468 // [ 4/8 bytes ] length of module code cache
469 // [ ... ] |length| bytes of module code cache
498 // [ 4/8 bytes ] length of the data name string
499 // [ ... ] |length| bytes of data name
540 // [ 4/8 bytes ] length of native_execution_async_resources
677 // [ 4/8 bytes ] length of primitive_values vector
678 // [ ... ] |length| of primitive_values indices
679 // [ 4/8 bytes ] length of template_values vector
680 // [ ... ] |length| of PropInfo data
781 // [ 4/8 bytes ] length of the node version string
782 // [ ... ] |length| bytes of node version
783 // [ 4/8 bytes ] length of the node arch string
784 // [ ... ] |length| bytes of node arch
785 // [ 4/8 bytes ] length of the node platform string
786 // [ ... ] |length| bytes of node platform
832 // [ 4/8 bytes ] length of Node.js version string
834 // [ 4/8 bytes ] length of Node.js arch string
1423 static_cast<int>(info->length));
1425 static_cast<int>(info->length)};