|
foobar2000 SDK
2015-01-14
|
#include <filesystem.h>
Inheritance diagram for foobar2000_io::stream_writer:Public Member Functions | |
| virtual void | write (const void *p_buffer, t_size p_bytes, abort_callback &p_abort)=0 |
| template<typename T > | |
| void | write_bendian_t (const T &p_object, abort_callback &p_abort) |
| template<typename T > | |
| void | write_lendian_t (const T &p_object, abort_callback &p_abort) |
| void | write_object (const void *p_buffer, t_size p_bytes, abort_callback &p_abort) |
| template<typename T > | |
| void | write_object_t (const T &p_object, abort_callback &p_abort) |
| void | write_string (const char *p_string, abort_callback &p_abort) |
| void | write_string (const char *p_string, t_size p_len, abort_callback &p_abort) |
| template<typename T > | |
| void | write_string (const T &val, abort_callback &p_abort) |
| void | write_string_nullterm (const char *p_string, abort_callback &p_abort) |
| void | write_string_raw (const char *p_string, abort_callback &p_abort) |
Protected Member Functions | |
| stream_writer () | |
| ~stream_writer () | |
Generic interface to write data to a nonseekable stream. Also see: stream_reader, file.
Error handling: all methods may throw exception_io or one of derivatives on failure; exception_aborted when abort_callback is signaled.
Definition at line 161 of file filesystem.h.
|
inlineprotected |
Definition at line 197 of file filesystem.h.
|
inlineprotected |
Definition at line 198 of file filesystem.h.
|
pure virtual |
Writes specified number of bytes from specified buffer to the stream.
| p_buffer | Buffer with data to write. Must contain at least p_bytes bytes. |
| p_bytes | Number of bytes to write. |
| p_abort | abort_callback object signaling user aborting the operation. |
|
inline |
Helper template. Writes single raw object to the stream; corrects byte order assuming stream uses big endian order.
| p_object | Object to write. |
| p_abort | abort_callback object signaling user aborting the operation. |
Definition at line 183 of file filesystem.h.
|
inline |
Helper template. Writes single raw object to the stream; corrects byte order assuming stream uses little endian order.
| p_object | Object to write. |
| p_abort | abort_callback object signaling user aborting the operation. |
Definition at line 179 of file filesystem.h.
|
inline |
Helper. Same as write(), provided for consistency.
Definition at line 170 of file filesystem.h.
|
inline |
Helper template. Writes single raw object to the stream.
| p_object | Object to write. |
| p_abort | abort_callback object signaling user aborting the operation. |
Definition at line 175 of file filesystem.h.
| void stream_writer::write_string | ( | const char * | p_string, |
| abort_callback & | p_abort | ||
| ) |
Helper function; writes string (with 32-bit header indicating length in bytes followed by UTF-8 encoded data without null terminator).
Definition at line 733 of file filesystem.cpp.
| void stream_writer::write_string | ( | const char * | p_string, |
| t_size | p_len, | ||
| abort_callback & | p_abort | ||
| ) |
Definition at line 727 of file filesystem.cpp.
|
inline |
Definition at line 190 of file filesystem.h.
|
inline |
Definition at line 195 of file filesystem.h.
| void stream_writer::write_string_raw | ( | const char * | p_string, |
| abort_callback & | p_abort | ||
| ) |
Helper function; writes raw string to the stream, with no length info or null terminators.
Definition at line 737 of file filesystem.cpp.
1.8.9.1