diff options
author | Determinant <[email protected]> | 2019-06-08 19:36:06 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2019-06-08 19:36:06 -0400 |
commit | d342de9e03902b93f1cff552e772f98caa0ee726 (patch) | |
tree | f12f78e5a66b9700db726848f23d8d5694a7fc9b /test_msgnet | |
parent | 1d71aba0a7c7d32c4188db801897a51ddfae865d (diff) |
WIP: ...
Diffstat (limited to 'test_msgnet')
-rw-r--r-- | test_msgnet/main.go | 4 |
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 { |