'Returns the WKB representation of the Geometry.'

@property
def wkb(self):

    if (sys.byteorder == 'little'):
        byteorder = 1
    else:
        byteorder = 0
    sz = self.wkb_size
    buf = (c_ubyte * sz)()
    wkb = capi.to_wkb(self.ptr, byteorder, byref(buf))
    return memoryview(string_at(buf, sz))
