A magazine is an ammunition storage and feeding device within or attached to a repeating firearm. Magazines can be removable or integral to the firearm. The magazine functions by moving the cartridges stored within it into a position where they may be loaded into the barrel chamber by the action of the firearm.