Add methods to IOHelper to support reading and writing byte arrays