io_wrapper Functions

March 26, 2020 Contributors
Name Description
io_wrapper_addref Add a reference to the specified io_object
io_wrapper_async_close Close an IO wrapper (deprecated)
io_wrapper_async_destroy schedules an io_wrapper_destroy in the IO thread pool if you’re not in the scheduler thread, you can use io_wrapper_destroy directly
io_wrapper_clone Duplicates an io_object, making it an independent cursor on the stream
io_wrapper_close Close an IO wrapper (deprecated)
io_wrapper_copy_memory Creates a copy of a memory buffer and returns a handle to that buffer
io_wrapper_copy_to_buffer copies up to len bytes from the io object and writes them to buf
io_wrapper_create_object manufactures an io_object on the fly
io_wrapper_create_read_job Creates a job to read the contents of a file
io_wrapper_delref Decrements the refcount on the io_object, and closes and frees it if the refcount reaches 0
io_wrapper_destroy Decrements the refcount on the io_object, and closes and frees it if the refcount reaches 0
io_wrapper_fdopen Open an io_object on top of an existing descriptor
io_wrapper_flush Flush a resource
io_wrapper_get_app_context Retrieve the application context value
io_wrapper_get_context Retrieves the context for an io object
io_wrapper_get_handle Gets the internal handle for an io object
io_wrapper_get_mode Retrieves the mode associated with an io object
io_wrapper_get_options Retrieve the options associated with an io object
io_wrapper_get_path Retrieve the path associated with an io object
io_wrapper_get_scheme Retrieves the scheme associated with an io object
io_wrapper_is_memory_based returns the memtype if an io_object is an in-memory io_object
io_wrapper_lookup Look up the specified IO wrapper
io_wrapper_lseek Reposition read/write resource offset
io_wrapper_mkpath_and_open Open a handle to a resource, creating any missing directories if necessary and (options and O_CREAT)
io_wrapper_open Open a handle to a resource
io_wrapper_open2 Open a handle to a resource with context
io_wrapper_open_memory Open a read-only handle on some memory
io_wrapper_open_tmpspool creates a temporary file in the spool
io_wrapper_printf printf-like function that operates on an io_object pointer
io_wrapper_read Read the specified number of bytes
io_wrapper_set_app_context_and_dtor Set an application-specific context value and destructor
io_wrapper_set_context Sets the context for an io object
io_wrapper_set_handle Sets the internal handle for an io object
io_wrapper_set_path Set the path associated with an io object
io_wrapper_set_scheme Set the scheme associated with an io object
io_wrapper_supports_lseek Indicates if a stream is seekable
io_wrapper_vprintf vprintf-like function that operates on an io_object pointer
io_wrapper_writev Write a vector