Sandertv / gophertunnel

General purpose library for Minecraft Bedrock Edition software written in Go
MIT License
423 stars 96 forks source link

minecraft/conn.go: Introduce `ReadBytes` #229

Closed cooldogedev closed 2 months ago

cooldogedev commented 3 months ago

This PR introduces ReadBytes, a method for efficiently reading packet payloads in minecraft/conn.go. This improvement is particularly useful for scenarios like proxies that forward data directly, where it eliminates unnecessary packet decoding overhead.

TwistedAsylumMC commented 2 months ago

Thanks for the PR!