No person who is arrested on a charge of felony shall be denied a preliminary hearing upon the question of whether there is reasonable ground to believe that he committed the offense and no indictment shall be returned in a court of record against any such person prior to such hearing unless such hearing is waived in writing by the accused.
Va. Code § 19.2-218