Lines Matching refs:argv_buf
251 uvwasi->argv_buf = NULL; in uvwasi_init()
265 uvwasi->argv_buf = uvwasi__malloc(uvwasi, args_size); in uvwasi_init()
266 if (uvwasi->argv_buf == NULL) { in uvwasi_init()
280 memcpy(uvwasi->argv_buf + offset, options->argv[i], size); in uvwasi_init()
281 uvwasi->argv[i] = uvwasi->argv_buf + offset; in uvwasi_init()
376 uvwasi__free(uvwasi, uvwasi->argv_buf); in uvwasi_destroy()
381 uvwasi->argv_buf = NULL; in uvwasi_destroy()
424 uvwasi_errno_t uvwasi_args_get(uvwasi_t* uvwasi, char** argv, char* argv_buf) { in uvwasi_args_get() argument
430 argv_buf); in uvwasi_args_get()
432 if (uvwasi == NULL || argv == NULL || argv_buf == NULL) in uvwasi_args_get()
436 argv[i] = argv_buf + (uvwasi->argv[i] - uvwasi->argv_buf); in uvwasi_args_get()
439 memcpy(argv_buf, uvwasi->argv_buf, uvwasi->argv_buf_size); in uvwasi_args_get()