Lines Matching refs:vector_name
417 const auto& vector_name = field_name + "_"; in GenSerialize() local
419 s << "size_t " << vector_name + "bytes = 0;"; in GenSerialize()
421 s << "for (auto elem : " << vector_name << ") {"; in GenSerialize()
422 s << vector_name + "bytes += elem.size(); }"; in GenSerialize()
424 s << vector_name + "bytes = "; in GenSerialize()
425 s << vector_name << ".size() * ((" << vector->element_size_ << ") / 8);"; in GenSerialize()
430 s << vector_name << "bytes = "; in GenSerialize()
431 s << vector_name << "bytes + (" << modifier << ") / 8;"; in GenSerialize()
433 s << "ASSERT(" << vector_name + "bytes < (1 << " << field->GetSize().bits() << "));"; in GenSerialize()
434 s << "insert(" << vector_name << "bytes, i, "; in GenSerialize()
455 const auto& vector_name = ((SizeField*)field)->GetSizedFieldName() + "_"; in GenSerialize() local
456 s << "insert(" << vector_name << ".size(), i, " << field->GetSize().bits() << ");"; in GenSerialize()
662 const auto& vector_name = field_name + "_bytes"; in GenRustWriteToFields() local
665 s << "let " << vector_name + " = self." << field_name in GenRustWriteToFields()
668 …s << "let " << vector_name + " = self." << field_name << ".len() * ((" << vector->element_size_ <<… in GenRustWriteToFields()
672 … s << "let " << vector_name << " = " << vector_name << " + (" << modifier.substr(1) << ") / 8;"; in GenRustWriteToFields()
675 … << "let " << field->GetName() << " = " << field->GetRustDataType() << "::try_from(" << vector_name in GenRustWriteToFields()