MirrorNetworking / kcp2k

MIT License
283 stars 50 forks source link

Add empty array segment for required out message #17

Closed JohannesDeml closed 3 years ago

JohannesDeml commented 3 years ago

I want to test the library with .NET and noticed one compile error in KcpConnection in bool ReceiveNextReliable(out KcpHeader header, out ArraySegment<byte> message). Since the message is set to out, it is required to be assigned. Setting it to an empty array segment seems like the proper way to do it.

miwarnec commented 3 years ago

fixed on master. thanks.