Maybe return a []byte rather than do the in-place modify using a pointer to outBytes?