Update to use the new zero-copy ctypes interface.