You could just have

     read_string(@chunk_size)