extended bio_reader and bio_writer to handle u_int64_t