Use std::io::Write; .

"global"}) return nil else r = str0:byte(index) index = (nexti + len) else index.