def bin_output(func):
 func.argtypes = [GEOM_PTR, POINTER(c_size_t)]
 func.errcheck = check_sized_string
 func.restype = c_uchar_p
 return func

def bin_output ( func ) : func . argtypes = [ GEOM_PTR , POINTER ( c_size_t ) ] func . errcheck = check_sized_string func . restype = c_uchar_p return func
generates a prototype for the routines that return a a sized string .