View definition

func EncodeVarint(x uint64) []byte

Defined in


EncodeVarint returns the varint encoding of x. This is the format for the int32, int64, uint32, uint64, bool, and enum protocol buffer types. Not used by the package itself, but helpful to clients wishing to use the same encoding.

EncodeVarint is referenced in 12 repositories