The provisions of sections 55, 57 and 59 shall apply, so far as may be, to all persons arrested under this Code. ...