mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
New serializer work.
Rework add/addRaw/addData per discussion with Arthur. New STObject add/deserialize code. STArray add/deserialize code. Allow arrays of normal fields. Other small fixes.
This commit is contained in:
@@ -202,7 +202,7 @@ STVector256* STVector256::construct(SerializerIterator& u, SField::ref name)
|
||||
return new STVector256(name, value);
|
||||
}
|
||||
|
||||
void STVector256::addData(Serializer& s) const
|
||||
void STVector256::add(Serializer& s) const
|
||||
{
|
||||
s.addVL(mValue.empty() ? NULL : mValue[0].begin(), mValue.size() * (256 / 8));
|
||||
}
|
||||
@@ -427,7 +427,7 @@ std::string STPathSet::getText() const
|
||||
}
|
||||
#endif
|
||||
|
||||
void STPathSet::addData(Serializer& s) const
|
||||
void STPathSet::add(Serializer& s) const
|
||||
{
|
||||
bool bFirst = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user