hypebeast / go-osc

Open Sound Control (OSC) library for Golang. Implemented in pure Go.
MIT License
200 stars 46 forks source link

Refactor packet parsing #54

Closed JulianJacobi closed 2 years ago

JulianJacobi commented 2 years ago

Removed start counter, instead create exactly sized buffer and use bufio.Reader.Buffered() method to determine remaning bytes.

This removes a lot of complexity from packet parsing process and solves #53