aboutsummaryrefslogtreecommitdiff
path: root/stream.go
diff options
context:
space:
mode:
Diffstat (limited to 'stream.go')
-rw-r--r--stream.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/stream.go b/stream.go
index 2727565..1e7860f 100644
--- a/stream.go
+++ b/stream.go
@@ -8,6 +8,10 @@ type ByteArray = *C.struct_bytearray_t
func NewByteArray() ByteArray { return C.bytearray_new() }
func (self ByteArray) Free() { C.bytearray_free(self) }
+func NewByteArrayMovedFromDataStream(src DataStream) ByteArray {
+ return C.bytearray_new_moved_from_datastream(src)
+}
+
type DataStream = *C.struct_datastream_t
func NewDataStream() DataStream { return C.datastream_new() }
@@ -82,7 +86,3 @@ func (self UInt256) Unserialize(s DataStream) { C.uint256_unserialize(self, s) }
func (self DataStream) GetHash() UInt256 {
return C.datastream_get_hash(self)
}
-
-func (_moved_self DataStream) ToByteArray() ByteArray {
- return C.datastream_to_bytearray(_moved_self)
-}