aboutsummaryrefslogtreecommitdiff
path: root/stream.go
diff options
context:
space:
mode:
authorDeterminant <tederminant@gmail.com>2019-06-08 19:36:06 -0400
committerDeterminant <tederminant@gmail.com>2019-06-08 19:36:06 -0400
commitd342de9e03902b93f1cff552e772f98caa0ee726 (patch)
treef12f78e5a66b9700db726848f23d8d5694a7fc9b /stream.go
parent1d71aba0a7c7d32c4188db801897a51ddfae865d (diff)
WIP: ...
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)
-}