Update ssz implementation of int types

This commit is contained in:
NatoliChris
2018-09-17 16:54:51 +10:00
parent 16bc6ba82a
commit cc1fc5c0cc
2 changed files with 59 additions and 50 deletions

View File

@@ -40,6 +40,13 @@ impl SszStream {
self.buffer.extend_from_slice(&vec);
}
/// Append some ssz encoded bytes to the stream without calculating length
///
/// The raw bytes will be concatenated to the stream.
pub fn append_encoded_raw(&mut self, vec: &Vec<u8>) {
self.buffer.extend_from_slice(&vec);
}
/// Append some vector (list) of encodable values to the stream.
///
/// The length of the list will be concatenated to the stream, then