|
Veritable Lasagna
An Allocator & Data Structure Library for C.
|
Include dependency graph for vl_stream.c:Functions | |
| vl_stream * | vlStreamNew (void *userData) |
| Creates a new stream object on the heap. | |
| void | vlStreamRetain (vl_stream *stream) |
| Increments the reference count of the stream. | |
| void | vlStreamDelete (vl_stream *stream) |
| Decrements reference count and potentially deletes the stream. | |
| void | vlStreamSetRead (vl_stream *stream, vl_stream_func_read func) |
| void | vlStreamSetWrite (vl_stream *stream, vl_stream_func_write func) |
| void | vlStreamSetSeek (vl_stream *stream, vl_stream_func_seek func) |
| void | vlStreamSetTell (vl_stream *stream, vl_stream_func_tell func) |
| void | vlStreamSetFlush (vl_stream *stream, vl_stream_func_flush func) |
| void | vlStreamSetClose (vl_stream *stream, vl_stream_func_close func) |
| vl_memsize_t | vlStreamRead (vl_stream *stream, void *outBuffer, vl_memsize_t outLength) |
| Reads data from the stream. | |
| vl_memsize_t | vlStreamWrite (vl_stream *stream, const void *inBuffer, vl_memsize_t inLength) |
| Writes data to the stream. | |
| vl_bool_t | vlStreamSeek (vl_stream *stream, vl_int64_t offset, vl_stream_origin origin) |
| Moves the stream position. | |
| vl_int64_t | vlStreamTell (vl_stream *stream) |
| Returns the current position in the stream. | |
| void | vlStreamFlush (vl_stream *stream) |
| Flushes any buffered data to the underlying device. | |
| void vlStreamDelete | ( | vl_stream * | stream | ) |
Decrements reference count and potentially deletes the stream.
If the reference count reaches zero, the close callback is invoked, and all associated memory (including the internal mutex and the stream struct itself) is freed.
NULL (no-op).| stream | Pointer to the stream to delete. |
Here is the call graph for this function:| void vlStreamFlush | ( | vl_stream * | stream | ) |
Flushes any buffered data to the underlying device.
NULL (no-op).| stream | pointer to the stream. |
Here is the call graph for this function:| vl_stream * vlStreamNew | ( | void * | userData | ) |
Creates a new stream object on the heap.
vl_stream pointer and is responsible for calling vlStreamDelete.vlStreamDelete.NULL if heap allocation for the stream or its internal mutex fails.NULL on allocation failure.vl_stream struct and a vl_mutex.NULL.| userData | pointer to backend-specific context. |
Here is the call graph for this function:
Here is the caller graph for this function:| vl_memsize_t vlStreamRead | ( | vl_stream * | stream, |
| void * | outBuffer, | ||
| vl_memsize_t | outLength | ||
| ) |
Reads data from the stream.
stream and outBuffer must be valid for the duration of the call.stream, stream->read, or outBuffer is NULL.totalRead counter.| stream | pointer to the stream. |
| outBuffer | pointer to the destination buffer. |
| outLength | maximum number of bytes to read. |
Here is the call graph for this function:| void vlStreamRetain | ( | vl_stream * | stream | ) |
Increments the reference count of the stream.
vlStreamDelete call.NULL (no-op).| stream | Pointer to the stream to retain. |
Here is the caller graph for this function:Moves the stream position.
VL_FALSE if stream is NULL.VL_FALSE if the backend seek function fails or is not provided.VL_TRUE if the seek operation was successful, VL_FALSE otherwise.| stream | pointer to the stream. |
| offset | offset relative to the specified origin. |
| origin | seek origin (beginning, current, or end). |
Here is the call graph for this function:| void vlStreamSetClose | ( | vl_stream * | stream, |
| vl_stream_func_close | func | ||
| ) |
Here is the caller graph for this function:| void vlStreamSetFlush | ( | vl_stream * | stream, |
| vl_stream_func_flush | func | ||
| ) |
| void vlStreamSetRead | ( | vl_stream * | stream, |
| vl_stream_func_read | func | ||
| ) |
Here is the caller graph for this function:| void vlStreamSetSeek | ( | vl_stream * | stream, |
| vl_stream_func_seek | func | ||
| ) |
Here is the caller graph for this function:| void vlStreamSetTell | ( | vl_stream * | stream, |
| vl_stream_func_tell | func | ||
| ) |
Here is the caller graph for this function:| void vlStreamSetWrite | ( | vl_stream * | stream, |
| vl_stream_func_write | func | ||
| ) |
Here is the caller graph for this function:| vl_int64_t vlStreamTell | ( | vl_stream * | stream | ) |
Returns the current position in the stream.
stream is NULL.tell function fails or is not provided.| stream | pointer to the stream. |
Here is the call graph for this function:| vl_memsize_t vlStreamWrite | ( | vl_stream * | stream, |
| const void * | inBuffer, | ||
| vl_memsize_t | inLength | ||
| ) |
Writes data to the stream.
stream and inBuffer must be valid.stream, stream->write, or inBuffer is NULL.totalWritten counter.| stream | pointer to the stream. |
| inBuffer | pointer to the source buffer. |
| inLength | number of bytes to write. |
Here is the call graph for this function: