def _get_c_string(data, position, opts):
 end = data.index('\x00', position)
 return (_utf_8_decode(data[position:end], opts.unicode_decode_error_handler, True)[0], (end + 1))

def _get_c_string ( data , position , opts ) : end = data . index ( '\x00' , position ) return ( _utf_8_decode ( data [ position : end ] , opts . unicode_decode_error_handler , True ) [ 0 ] , ( end + 1 ) )
decode a bson c string to python unicode string .