aboutsummaryrefslogtreecommitdiff
path: root/test_msgnet
diff options
context:
space:
mode:
Diffstat (limited to 'test_msgnet')
-rw-r--r--test_msgnet/main.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/test_msgnet/main.go b/test_msgnet/main.go
index f1d82dc..4158376 100644
--- a/test_msgnet/main.go
+++ b/test_msgnet/main.go
@@ -37,7 +37,9 @@ func msgHelloSerialize(name string, text string) salticidae.Msg {
serialized.PutData(t)
serialized.PutData([]byte(name))
serialized.PutData([]byte(text))
- return salticidae.NewMsg(MSG_OPCODE_HELLO, serialized.ToByteArray())
+ return salticidae.NewMsg(
+ MSG_OPCODE_HELLO,
+ salticidae.NewByteArrayFromDataStreamByMove(serialized))
}
func msgHelloUnserialize(msg salticidae.Msg) MsgHello {