Use buffer in STBlob

This commit is contained in:
seelabs
2015-03-12 11:54:15 -07:00
committed by Tom Ritchford
parent 8ca9fa1c26
commit 803f5b5613
10 changed files with 102 additions and 77 deletions

View File

@@ -37,12 +37,12 @@ std::string STAccount::getText () const
STAccount*
STAccount::construct (SerialIter& u, SField::ref name)
{
return new STAccount (name, u.getVL ());
return new STAccount (name, u.getVLBuffer ());
}
STAccount::STAccount (SField::ref n, Account const& v) : STBlob (n)
STAccount::STAccount (SField::ref n, Account const& v)
: STBlob (n, v.data (), v.size ())
{
peekValue ().insert (peekValue ().end (), v.begin (), v.end ());
}
bool STAccount::isValueH160 () const