def pack_value(cls, value): assert (value >= 0) return base128variant.pack(value)
def pack_value(cls, value): return base128variant.pack(zigzag.encode(value))
def gen_pack(): yield base128variant.pack((self.index << 3) | self.get_wire_type()) yield self.pack_payload(value)
def pack_value(cls, value): return base128variant.pack(len(value)) + value
def gen_pack(): yield base128variant.pack(len(self.values)) for value in self.values: yield self.value_type.pack(value)