diff options
author | Determinant <tederminant@gmail.com> | 2019-06-11 14:25:40 -0400 |
---|---|---|
committer | Determinant <tederminant@gmail.com> | 2019-06-11 14:25:40 -0400 |
commit | ef377f5d85503451a16d50fbc535a7537a28b57f (patch) | |
tree | a57d9268a0984107ad7b483c942a992df6e6a6ec /include/salticidae/stream.h | |
parent | 05ffb2ce9f4a0cbaca05a1d46b040743d661ce25 (diff) |
...
Diffstat (limited to 'include/salticidae/stream.h')
-rw-r--r-- | include/salticidae/stream.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/salticidae/stream.h b/include/salticidae/stream.h index 843fba6..cf007ac 100644 --- a/include/salticidae/stream.h +++ b/include/salticidae/stream.h @@ -502,7 +502,7 @@ void uint256_serialize(const uint256_t *self, datastream_t *s); void uint256_unserialize(uint256_t *self, datastream_t *s); datastream_t *datastream_new(); -datastream_t *datastream_new_from_bytes(const uint8_t *begin, const uint8_t *end); +datastream_t *datastream_new_from_bytes(const uint8_t *base, size_t size); void datastream_free(const datastream_t *self); void datastream_assign_by_copy(datastream_t *dst, const datastream_t *src); @@ -520,8 +520,7 @@ void datastream_put_i8(datastream_t *self, int8_t val); void datastream_put_i16(datastream_t *self, int16_t val); void datastream_put_i32(datastream_t *self, int32_t val); void datastream_put_i64(datastream_t *self, int64_t val); -void datastream_put_data(datastream_t *self, - const uint8_t *begin, const uint8_t *end); +void datastream_put_data(datastream_t *self, const uint8_t *base, size_t size); uint8_t datastream_get_u8(datastream_t *self); uint16_t datastream_get_u16(datastream_t *self); |