From 66c711cf653b082ae07e1119417dcb3461039c80 Mon Sep 17 00:00:00 2001 From: Determinant Date: Sat, 8 Jun 2019 19:22:29 -0400 Subject: major API update --- src/stream.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/stream.cpp') diff --git a/src/stream.cpp b/src/stream.cpp index 9dfe5fc..9ad41aa 100644 --- a/src/stream.cpp +++ b/src/stream.cpp @@ -77,9 +77,9 @@ uint256_t *datastream_get_hash(const datastream_t *self) { return new uint256_t(self->get_hash()); } -bytearray_t *datastream_to_bytearray(datastream_t *_moved_self) { - auto res = new bytearray_t(std::move(*_moved_self)); - delete _moved_self; +bytearray_t *bytearray_new_moved_from_datastream(datastream_t *_moved_src) { + auto res = new bytearray_t(std::move(*_moved_src)); + delete _moved_src; return res; } -- cgit v1.2.3