When a public offense is committed in the presence of a magistrate, he may, by a verbal or written order, command any person to arrest the offender, and may thereupon proceed as if the offender had been brought before him on a warrant of arrest.
Okla. Stat. tit. 22, § 201