75 virtual
size_t read(
xtd::
array<
char>& buffer,
size_t index,
size_t count);
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:61
Represents a null text reader.
Definition text_reader.hpp:128
int32 read() 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
int32 read() 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 int32 read()
Reads the next character from the input stream and advances the character position by one character.
virtual xtd::string read_to_end()
Reads all characters from the current position to the end of the text_reader and returns them as one ...
virtual void close()
Closes the xtd::io::text_reader and releases any system resources associated with the text_reader.
virtual int32 peek() const
Reads the next character without changing the state of the reader or the character source....
virtual size_t read_block(xtd::span< char > &buffer)
Reads the characters from the current stream and writes the data to a buffer.
virtual xtd::string read_line()
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.
static synchronized_text_reader synchronised(text_reader &reader) noexcept
Creates a thread-safe (synchronized) wrapper around the specified text_reader object.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:44
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
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.