(feat) add read_to_bytes parser function