157 friend class text_reader;
159 synchronized_text_reader() =
delete;
Contains xtd::array class.
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:64
Represents a null text reader.
Definition text_reader.hpp:128
auto read() -> xtd::int32 override
Reads the next character from the input stream and advances the character position by one character.
Represents a synchronized text reader.
Definition text_reader.hpp:148
auto read() -> xtd::int32 override
Reads the next character from the input stream and advances the character position by one character.
Represents a reader that can read a sequential series of characters.
Definition text_reader.hpp:38
virtual auto read_block(xtd::span< char > &buffer) -> xtd::size
Reads the characters from the current stream and writes the data to a buffer.
virtual auto read() -> xtd::int32
Reads the next character from the input stream and advances the character position by one character.
virtual auto close() -> void
Closes the xtd::io::text_reader and releases any system resources associated with the text_reader.
virtual auto read_line() -> xtd::string
Reads a line of characters from the current stream and returns the data as a string.
static null_text_reader & null() noexcept
Provides a text_reader with no data to read from.
text_reader()=default
Initializes a new instance of the xtd::io::text_reader class.
virtual auto read_to_end() -> xtd::string
Reads all characters from the current position to the end of the text_reader and returns them as one ...
static auto synchronised(text_reader &reader) noexcept -> synchronized_text_reader
Creates a thread-safe (synchronized) wrapper around the specified text_reader object.
virtual auto peek() const -> xtd::int32
Reads the next character without changing the state of the reader or the character source....
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:45
Represents a non-owning view over a contiguous sequence of objects.
Definition span.hpp:58
Contains core_export_ keyword.
#define core_export_
Define shared library export.
Definition core_export.hpp:13
size_t size
Represents a size of any object in bytes.
Definition size.hpp:23
std::int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
The xtd::io namespace contains types that allow reading and writing to files and data streams,...
Definition binary_reader.hpp:17
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::object class.
Contains xtd::span class.
Contains xtd::string alias.