Slice improvements:

* Rename to makeSlice
* Well defined default construction
* Add `empty`
* Add operator[]
* Buffer arithmetic
This commit is contained in:
Vinnie Falco
2015-07-08 08:53:08 -07:00
parent 5962a4817a
commit 362726de4a
18 changed files with 75 additions and 39 deletions

View File

@@ -230,7 +230,7 @@ Blob Serializer::getRaw (int offset, int length) const
uint256 Serializer::getSHA512Half () const
{
return sha512Half(make_Slice(mData));
return sha512Half(makeSlice(mData));
}
int Serializer::addVL (Blob const& vector)