func DecodeLength(buf []byte) (length int32, err error) {
	varCodec := encoding.VarCodec{}
	err = varCodec.DecodePVarInt32(buf, &length)
	return
}
DecodeLength decode to length
package common
import (
	"github.com/yomorun/y3-codec-golang/internal/utils"
	"github.com/yomorun/y3-codec-golang/pkg/encoding"
)