CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
sbfile.h
Go to the documentation of this file.
1
34
35#pragma once
36
37#include <cx/fs/file.h>
39
40CX_C_BEGIN
41
47
71bool _sbufFileIn(_Inout_ StreamBuffer* sb, _Pre_valid_ _When_(close, _Post_invalid_) File* file,
72 bool close);
73#define sbufFileIn(sb, file, close) _sbufFileIn(sb, File(file), close)
74
91_Check_return_ bool _sbufFilePRegisterPull(_Inout_ StreamBuffer* sb,
92 _Pre_valid_ _When_(close, _Post_invalid_) File* file,
93 bool close);
94#define sbufFilePRegisterPull(sb, file, close) _sbufFilePRegisterPull(sb, File(file), close)
95
97
103
123bool _sbufFileOut(_Inout_ StreamBuffer* sb, _Pre_valid_ _When_(close, _Post_invalid_) File* file,
124 bool close);
125#define sbufFileOut(sb, file, close) _sbufFileOut(sb, File(file), close)
126
143_Check_return_ bool _sbufFileCRegisterPush(_Inout_ StreamBuffer* sb,
144 _Pre_valid_ _When_(close, _Post_invalid_) File* file,
145 bool close);
146#define sbufFileCRegisterPush(sb, file, close) _sbufFileCRegisterPush(sb, File(file), close)
147
149
153#define sbufFSFileIn(sb, file, close) sbufFileIn(sb, file, close)
154
158#define sbufFSFilePRegisterPull(sb, file, close) sbufFilePRegisterPull(sb, file, close)
159
163#define sbufFSFileOut(sb, file, close) sbufFileOut(sb, file, close)
164
168#define sbufFSFileCRegisterPush(sb, file, close) sbufFileCRegisterPush(sb, file, close)
169
171
172CX_C_END
Low-level file I/O operations.
bool _sbufFileCRegisterPush(StreamBuffer *sb, File *file, bool close)
bool _sbufFileOut(StreamBuffer *sb, File *file, bool close)
bool _sbufFileIn(StreamBuffer *sb, File *file, bool close)
bool _sbufFilePRegisterPull(StreamBuffer *sb, File *file, bool close)
Core stream buffer implementation for efficient data streaming.
Definition fileobj.h:59