4#include "system/array.h"
5#include "system/string.h"
6#include "system/idisposable.h"
7#include "system/decimal.h"
20namespace System {
namespace IO {
51 const bool leave_open;
54 void * m_native_converter;
56 bool m_isMemoryStream;
80 virtual ASPOSECPP_SHARED_API
void Close();
93 virtual ASPOSECPP_SHARED_API
int Read();
113 void Dispose(
bool disposing);
116 void FillBuffer(
int numBytes);
124 ASPOSECPP_SHARED_API
int ReadCharBytes(
const ArrayPtr<char_t>& buffer,
int index,
int count,
int &bytes_read);
196 virtual ASPOSECPP_SHARED_API
void Dispose()
override;
200 void InitializeInstanceFields();
Represents a decimal number. This type should be allocated on stack and passed to functions by value ...
Definition: decimal.h:107
Defines method that releases resources owned by the current object. Objects of this class should only...
Definition: idisposable.h:30
Represents a reader that reads primitive data types as binary data in particular encoding....
Definition: binary_reader.h:26
virtual float ReadSingle()
Reads 4 bytes from the input stream and returns them as a single-precision floating point value.
virtual char_t ReadChar()
Reads a single character from the input stream.
virtual void Dispose() override
Releases all resources used by the current object and closes the undelying stream.
virtual String ReadString()
Reads a string from the current stream. The string is prefixed with the length, encoded as an integer...
virtual void Close()
Closes the current BinaryReader object and the underlying input stream.
virtual uint32_t ReadUInt32()
Reads 4 bytes from the input stream and returns them as an unsigned 32-bit integer value.
virtual uint64_t ReadUInt64()
Reads 8 bytes from the input stream and returns them as an unsigned 64-bit integer value.
BinaryReader(const SharedPtr< Stream > &input, const SharedPtr< Text::Encoding > &encoding)
Constructs an instance of BinaryReader class that reads data from the specified stream using the spec...
virtual Decimal ReadDecimal()
NOT IMPLEMENTED.
virtual uint16_t ReadUInt16()
Reads 2 bytes from the input stream and returns them as an unsigned 16-bit integer value.
virtual int PeekChar()
Reads a single character from the input stream without changing the stream's read cursor.
virtual int16_t ReadInt16()
Reads 2 bytes from the input stream and returns them as a 16-bit integer value.
virtual SharedPtr< Stream > get_BaseStream()
Returns the input stream.
virtual int64_t ReadInt64()
Reads 8 bytes from the input stream and returns them as a 64-bit integer value.
virtual ~BinaryReader()
Destructor.
virtual int Read(ArrayPtr< char_t > buffer, int index, int count)
Reads the specified number of characters from the input stream, converts them to UTF-16 encoding and ...
virtual int ReadInt32()
Reads 4 bytes from the input stream and returns them as a 32-bit integer value.
int Read7BitEncodedInt()
Reads integer value encoded in 7-bit (8th bit used as overflow park).
virtual bool ReadBoolean()
Reads a single byte from the input stream and returns its boolean representation.
virtual uint8_t ReadByte()
Reads a single byte from the input stream.
BinaryReader(const SharedPtr< Stream > &input)
Constructs an instance of BinaryReader class that reads data from the specified stream using UTF-8 en...
virtual int Read(ArrayPtr< uint8_t > buffer, int index, int count)
Reads the specified number of bytes from the input stream and writes them to the specified byte array...
virtual double ReadDouble()
Reads 8 bytes from the input stream and returns them as a double-precision floating point value.
virtual ArrayPtr< uint8_t > ReadBytes(int count)
Reads the specified number of bytes from the input stream.
virtual int Read()
Reads a single character from the input stream.
virtual int8_t ReadSByte()
Reads a single byte from the input stream and returns it as a signed 8-bit integer value.
virtual ArrayPtr< char_t > ReadChars(int count)
Reads the specified number of characters from the input stream and returns them in UTF-16 ecoding.
BinaryReader(const SharedPtr< Stream > &input, const SharedPtr< Text::Encoding > &encoding, bool leaveOpen)
Constructs an instance of BinaryReader class that reads data from the specified stream using the spec...
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
@ Text
Defines color adjustment information for text.
@ Stream
The type that supports reliable, two-way, connection-based byte streams without duplication of data a...
Definition: db_command.h:9