|
|
ALWAYS_INLINE | basic_ofakestream () |
| | Constructs an output stream with a default buffer.
|
| |
|
| basic_ofakestream (const basic_ofakestream &)=delete |
| |
|
| basic_ofakestream (basic_ofakestream &&)=delete |
| |
|
basic_ofakestream & | operator= (const basic_ofakestream &)=delete |
| |
|
basic_ofakestream & | operator= (basic_ofakestream &&)=delete |
| |
|
ALWAYS_INLINE | ~basic_ofakestream () |
| | Destructor that frees allocated memory.
|
| |
| ALWAYS_INLINE void | put (const char_type cChar) |
| | Writes a single character to the stream.
|
| |
| ALWAYS_INLINE void | write (const char_type *const pData, const std::size_t nLength) |
| | Writes a block of data to the stream.
|
| |
| ALWAYS_INLINE bool | empty () const noexcept |
| | Checks if the stream is empty.
|
| |
| ALWAYS_INLINE std::size_t | size () const noexcept |
| | Gets the stream size.
|
| |
|
ALWAYS_INLINE void | clear () noexcept |
| | Clears the stream by resetting the position.
|
| |
| ALWAYS_INLINE void | operator<< (const std::basic_string< char_type > &sString) |
| | Writes a string to the stream using the << operator.
|
| |
| ALWAYS_INLINE void | operator<< (const std::basic_string_view< char_type > &sString) |
| | Writes a string view to the stream using the << operator.
|
| |
| ALWAYS_INLINE std::basic_string_view< char_type > | view () const noexcept |
| | Gets a read-only view of the current state of the stream.
|
| |
| ALWAYS_INLINE std::basic_string< char_type > | str () const |
| | Converts the current data to a string.
|
| |
| ALWAYS_INLINE std::basic_string< char_type > | str_reset () |
| | Resets the stream and returns the current data as a string.
|
| |
| ALWAYS_INLINE std::basic_string< char_type > | sub_str (const std::size_t nBegin, std::size_t nLength) const noexcept |
| | Converts a portion of the current data to a string.
|
| |
template<typename char_t>
class bs::basic_ofakestream< char_t >
A class for output stream behavior with a character type.
- Template Parameters
-
| char_t | The character type (e.g., char, wchar_t). |