|
|
ALWAYS_INLINE | basic_ifakestream () |
| | Constructs an empty input stream.
|
| |
| ALWAYS_INLINE | basic_ifakestream (const char *const pData, const std::size_t nSize) |
| | Constructs an input stream with data and size.
|
| |
| ALWAYS_INLINE | basic_ifakestream (const std::string_view &sText) |
| | Constructs an input stream with string view.
|
| |
|
| basic_ifakestream (const basic_ifakestream &)=delete |
| |
|
| basic_ifakestream (basic_ifakestream &&)=delete |
| |
|
basic_ifakestream & | operator= (const basic_ifakestream &)=delete |
| |
|
basic_ifakestream & | operator= (basic_ifakestream &&)=delete |
| |
| ALWAYS_INLINE int_type | get () noexcept |
| | Retrieves the next character character from the stream and moves to the next.
|
| |
| ALWAYS_INLINE int_type | peek () noexcept |
| | Retrieves the next character from the stream. Does not increment stream position.
|
| |
| ALWAYS_INLINE int_type | prev () noexcept |
| | Retrieves the previous character from the stream. Does not move stream position.
|
| |
|
ALWAYS_INLINE void | put_back () noexcept |
| | Returns the last read character to the stream.
|
| |
| ALWAYS_INLINE std::size_t | read (char_type *const pBuffer, const std::size_t nCount) noexcept |
| | Reads a specified number of characters into a buffer.
|
| |
| ALWAYS_INLINE bool | eof () const noexcept |
| | Checks if the end of the stream has been reached.
|
| |
| ALWAYS_INLINE std::size_t | tell () const noexcept |
| | Gets the current position in the stream.
|
| |
| ALWAYS_INLINE void | seek (const std::size_t pos) noexcept |
| | Seeks to a specified position in the stream.
|
| |
| ALWAYS_INLINE std::size_t | size () const noexcept |
| | Gets the stream data size.
|
| |
| ALWAYS_INLINE std::basic_string_view< char_type > | view () const noexcept |
| | Gets a read-only view of the stream data.
|
| |
| ALWAYS_INLINE std::basic_string_view< char_type > | sub_view (const std::size_t nBegin, std::size_t nLength) const noexcept |
| | Gets a read-only view of the stream data.
|
| |
| ALWAYS_INLINE std::basic_string< char_type > | str () const |
| | Converts the data to a string.
|
| |
| ALWAYS_INLINE std::basic_string_view< char_type > | remaining_view () const noexcept |
| | Gets a read-only view of the stream remaining data.
|
| |
| ALWAYS_INLINE std::basic_string< char_type > | remaining_str () const |
| | Converts the remaining data to a string.
|
| |
template<typename char_t>
class bs::basic_ifakestream< char_t >
A class for input stream behavior with a character type.
- Template Parameters
-
| char_t | The character type (e.g., char, wchar_t). |