parameters: (value)
return_statement: return output
docstring: Packs a python integer into a variable length byte sequence.
docstring_summary: Packs a python integer into a variable length byte sequence.
docstring_tokens: Packs a python integer into a variable length byte sequence .
function: def PackVariableLengthInteger(value):
    """Packs a python integer into a variable length byte sequence."""
    if value == 0:
      return '\x00'
    s = value
    output = []
    while value:
      to_write = value & 0x7f
      value = value >> 7
      output.insert(0, to_write)
    for i in xrange(len(output) - 1):
      output[i] |= 0x80
    output = ''.join(map(chr, output))
    return output
function_tokens: def PackVariableLengthInteger ( value ) : if value == 0 : return '\x00' s = value output = [ ] while value : to_write = value & 0x7f value = value >> 7 output . insert ( 0 , to_write ) for i in xrange ( len ( output ) - 1 ) : output [ i ] |= 0x80 output = '' . join ( map ( chr , output ) ) return output