During the 17th and 18th century, sailing ships were equipped with pumps to avoid flooding. This can be seen during the opening battle of master and commander: the far side of the world. Part of the crew act on cranks, then water is thrown overboard and other part of the crew try to repair the hull. Yet, there is no clue about how the pump work, what pieces pumps are composed of, what kind of hydraulic pump it is.
How did pumps used to avoid flooding work on those ship? What kind of pump was it? What materials were they composed of?