3D data read and write