mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Cleanups. Missing helper functions.
This commit is contained in:
@@ -142,6 +142,11 @@ static std::string hex(const std::vector<unsigned char>& value)
|
||||
return std::string(psz, psz + value.size()*2);
|
||||
}
|
||||
|
||||
STVariableLength::STVariableLength(SerializerIterator& st, const char *name) : SerializedType(name)
|
||||
{
|
||||
value = st.getVL();
|
||||
}
|
||||
|
||||
std::string STVariableLength::getText() const
|
||||
{
|
||||
return hex(value);
|
||||
|
||||
Reference in New Issue
Block a user