mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Use buffer in STBlob
This commit is contained in:
@@ -25,21 +25,21 @@ namespace ripple {
|
||||
|
||||
STBlob::STBlob (SerialIter& st, SField::ref name)
|
||||
: STBase (name)
|
||||
, value_ (st.getVLBuffer ())
|
||||
{
|
||||
value = st.getVL ();
|
||||
}
|
||||
|
||||
std::string
|
||||
STBlob::getText () const
|
||||
{
|
||||
return strHex (value);
|
||||
return strHex (value_.data (), value_.size ());
|
||||
}
|
||||
|
||||
bool
|
||||
STBlob::isEquivalent (const STBase& t) const
|
||||
{
|
||||
const STBlob* v = dynamic_cast<const STBlob*> (&t);
|
||||
return v && (value == v->value);
|
||||
return v && (value_ == v->value_);
|
||||
}
|
||||
|
||||
} // ripple
|
||||
|
||||
Reference in New Issue
Block a user