The pistons in an axial piston pump move in and out of the barrel in line with the input shaft as the barrel rotates. When a piston moves out of the barrel, oil moves through the inlet and fills the space left by the piston movement. As the barrel continues its rotation, the piston moves back into the barrel and the oil is pushed through the outlet into the system