mirror of
https://github.com/Xahau/xahaud.git
synced 2026-06-05 01:36:38 +00:00
Improve the readability of STBase-derived types
* Increase the visibility of each type's API. * No functional changes.
This commit is contained in:
committed by
Nik Bougalis
parent
72377e7bf2
commit
74e6ed1af3
@@ -41,11 +41,35 @@ STVector256::STVector256(SerialIter& sit, SField const& name) : STBase(name)
|
||||
}
|
||||
}
|
||||
|
||||
STBase*
|
||||
STVector256::copy(std::size_t n, void* buf) const
|
||||
{
|
||||
return emplace(n, buf, *this);
|
||||
}
|
||||
|
||||
STBase*
|
||||
STVector256::move(std::size_t n, void* buf)
|
||||
{
|
||||
return emplace(n, buf, std::move(*this));
|
||||
}
|
||||
|
||||
SerializedTypeID
|
||||
STVector256::getSType() const
|
||||
{
|
||||
return STI_VECTOR256;
|
||||
}
|
||||
|
||||
bool
|
||||
STVector256::isDefault() const
|
||||
{
|
||||
return mValue.empty();
|
||||
}
|
||||
|
||||
void
|
||||
STVector256::add(Serializer& s) const
|
||||
{
|
||||
assert(fName->isBinary());
|
||||
assert(fName->fieldType == STI_VECTOR256);
|
||||
assert(getFName().isBinary());
|
||||
assert(getFName().fieldType == STI_VECTOR256);
|
||||
s.addVL(mValue.begin(), mValue.end(), mValue.size() * (256 / 8));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user