GC 26601. The sheriff shall arrest and take before the nearest magistrate for examination all persons who attempt to commit or who have committed a public offense.