ENCODE-TO-BUFFER, direct encoding to a fast-io buffer