libcute 0.1
Loading...
Searching...
No Matches
Classes | Functions
fstream.h File Reference
#include "collection/ring_buffer.h"
#include "io/dir.h"
#include "io/error.h"
#include "io/file.h"
#include "io/stream.h"
#include "memory/allocator.h"
Include dependency graph for fstream.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cu_FStream
 

Functions

cu_FStream_Result cu_FStream_open (cu_Slice path, cu_File_Options options, size_t buffer_size, cu_Allocator allocator)
 
cu_FStream_Result cu_FStream_openat (cu_Dir *dir, cu_Slice path, cu_File_Options options, size_t buffer_size, cu_Allocator allocator)
 
cu_Stream cu_FStream_stream (cu_FStream *fs)
 
cu_Io_Error_Optional cu_FStream_flush (cu_FStream *stream)
 
cu_Io_Error_Optional cu_FStream_seek (cu_FStream *stream, cu_File_SeekTo to)
 
cu_IoSize_Result cu_FStream_tell (cu_FStream *stream)
 
void cu_FStream_close (cu_FStream *stream)
 

Detailed Description

Buffered stream backed by files.

Function Documentation

◆ cu_FStream_close()

void cu_FStream_close ( cu_FStream stream)

Release stream resources and close the file.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cu_FStream_stream()

cu_Stream cu_FStream_stream ( cu_FStream fs)

View the fstream as a generic stream interface.

Here is the call graph for this function:
Here is the caller graph for this function: