code: func deserializeVLQ(serialized []byte) (uint64, int) {
  	var n uint64
  	var size int
  	for _, val := range serialized {
  		size++
  		n = (n << 7) | uint64(val&0x7f)
  		if val&0x80 != 0x80 {
  			break
  		}
  		n++
  	}
  
  	return n, size
  }
docs: // deserializeVLQ deserializes the provided variable-length quantity according
  // to the format described above.  It also returns the number of bytes
  // deserialized.