def bin_constructor(func):
    func.argtypes = [c_char_p, c_size_t]
    func.restype = GEOM_PTR
    func.errcheck = check_geom
    return func

# HEX & WKB output
Generates a prototype for binary construction (HEX, WKB) GEOS routines.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/contrib/gis/geos/prototypes/geom.py/bin_constructor