(data, position, obj_end, opts)
return element_name, value, position
Decode a single key, value pair.
Decode a single key, value pair.
Decode a single key value pair .
def _element_to_dict(data, position, obj_end, opts):
    """Decode a single key, value pair."""
    element_type = data[position:position + 1]
    position += 1
    element_name, position = _get_c_string(data, position, opts)
    try:
        value, position = _ELEMENT_GETTER[element_type](data, position,
                                                        obj_end, opts,
                                                        element_name)
    except KeyError:
        _raise_unknown_type(element_type, element_name)
    return element_name, value, position
def _element_to_dict ( data , position , obj_end , opts ) : element_type = data [ position : position + 1 ] position += 1 element_name , position = _get_c_string ( data , position , opts ) try : value , position = _ELEMENT_GETTER [ element_type ] ( data , position , obj_end , opts , element_name ) except KeyError : _raise_unknown_type ( element_type , element_name ) return element_name , value , position