func (b byteReader) Uint32() uint32 {
	if r := b.remain(); r < 4 {
		v := uint32(0)
		for i := 1; i <= r; i++ {
			v = (v << 8) | uint32(b.b[len(b.b)-i])
		}
		return v
	}
	b2 := b.b[b.off : b.off+4 : b.off+4]
	v3 := uint32(b2[3])
	v2 := uint32(b2[2])
	v1 := uint32(b2[1])
	v0 := uint32(b2[0])
	return v0 | (v1 << 8) | (v2 << 16) | (v3 << 24)
}
Uint32 returns a little endian uint32 starting at current offset.
package zstd
type byteReader struct {
	b   []byte
	off int
}
func (b *byteReader) init(in []byte) {
	b.b = in
	b.off = 0
}
func (b *byteReader) advance(n uint) {
	b.off += int(n)
}
func (b *byteReader) overread() bool {
	return b.off > len(b.b)
}
func (b byteReader) Int32() int32 {
	b2 := b.b[b.off : b.off+4 : b.off+4]
	v3 := int32(b2[3])
	v2 := int32(b2[2])
	v1 := int32(b2[1])
	v0 := int32(b2[0])
	return v0 | (v1 << 8) | (v2 << 16) | (v3 << 24)
}
func (b *byteReader) Uint8() uint8 {
	v := b.b[b.off]
	return v
}