def read(self, wkb):
        if isinstance(wkb, six.memoryview):
            wkb_s = bytes(wkb)
            return wkb_reader_read(self.ptr, wkb_s, len(wkb_s))
        elif isinstance(wkb, (bytes, six.string_types)):
            return wkb_reader_read_hex(self.ptr, wkb, len(wkb))
        else:
            raise TypeError


# ### WKB/WKT Writer Classes ###
Returns a _pointer_ to C GEOS Geometry object from the given WKB.
dataset/ETHPy150Open django/django/django/contrib/gis/geos/prototypes/io.py/_WKBReader.read