

def decode_short_string(encoded, offset):
    'Decode a short string value from ``encoded`` data at ``offset``.\n        '
    length = struct.unpack_from('B', encoded, offset)[0]
    offset += 1
    value = encoded[offset:(offset + length)].decode('utf8')
    offset += length
    return (value, offset)

dataset/ETHPy150Open pika/pika/pika/data.py decode_short_string/original