3d texture matching

Hi! anyone knows how 3dtexture mapping is made from the data pointer? i mean, in 2d texture, matching from data to texels is made row-wise, but in 3d texture?

Just create n 2D textures and store them sequentially in memory. Then give the pointer to the first 2D slice to glTexImage3D.