Cleanups. Missing helper functions.

This commit is contained in:
JoelKatz
2012-05-03 12:40:05 -07:00
parent 72ef5f6e4b
commit cf801992be
2 changed files with 15 additions and 9 deletions

View File

@@ -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);