zpl-c / enet

⚡️ ENet reliable UDP networking library
https://blog.zpl.pw
MIT License
650 stars 62 forks source link

enet_packet_resize is missing #44

Closed Steamgjk closed 1 year ago

Steamgjk commented 1 year ago

While I was testing with a small demo, I found enet_packet_resize is defined by not implemented in the single-header file enet.h.

Is there any special consideration for dropping the API?

inlife commented 1 year ago

I don't think it was a conscious decision, most likely done by mistake.

inlife commented 1 year ago

Ideally, we would like to port it back here in some time. However, if you are open to a contribution, it would be highly welcomed! 🎉

zpl-zak commented 1 year ago

I will add it today. It must've been lost during one of our large refactors; sorry about that!

zpl-zak commented 1 year ago

enet_packet_resize is available again as of https://github.com/zpl-c/enet/commit/42c03e1ff26bf5873a9de8c52645ffd3ac9687e4