v1.0.16
版本发布时间: 2021-12-05 22:34:47
kelindar/binary最新发布版本:v1.0.19(2024-02-25 21:42:02)
This release contains a refactoring of internal readers used for unmarshaling by the decoder.
- It speeds up varint decoding slightly by providing a methods
ReadUvarint()
andReadVarint()
directly in the reader. - When using a plain decoder with a
byte.Buffer
, it will now use thesliceReader
which is more efficient compared to the newly introducedstreamReader
. - When using any other
io.Reader
it now checks if it also implementsio.ByteReader
and constructs an appropriate fallback if necessary.