|
| RTTI_INFO_TEMPLATE_CLASS (ThisType, ThisTypeBaseTypesInfo) |
| RTTI information.
|
|
| BasicSTDIOStreamWrapper (std::basic_iostream< char_type, traits_type > &str, STDIOStreamWrappingMode mode=STDIOStreamWrappingMode::Binary, STDIOStreamPositionPreference pref_pos=STDIOStreamPositionPreference::Zero) |
| Constructs a new instance of the BasicSTDIOStreamWrapper.
|
|
| BasicSTDIOStreamWrapper (const BasicSTDIOStreamWrapper &)=delete |
| Copy constructor. Deleted.
|
|
BasicSTDIOStreamWrapper & | operator= (const BasicSTDIOStreamWrapper &)=delete |
| Copy assignment operator. Deleted.
|
|
virtual int | ReadByte () override |
| If wrapping mode is binary, reads a single byte from the last decoded character storage, otherwise read a single character from the stream and convert it to uint8_t type.
|
|
virtual void | WriteByte (uint8_t value) override |
| If wrapping mode is binary, writes to the stream the specified unsigned 8-bit integer value, otherwise convert it to char_type type and then write the result to the stream.
|
|
virtual int32_t | Read (const ArrayPtr< uint8_t > &buffer, int32_t offset, int32_t count) override |
| If wrapping mode is binary, reads the specified number of bytes from the stream, otherwise read the specified number of characters and converts them to uint8_t type. Writes result of the reading to the specified byte array.
|
|
virtual void | Write (const ArrayPtr< uint8_t > &buffer, int32_t offset, int32_t count) override |
| If wrapping mode is binary, writes to the stream the specified subrange of bytes from the specified byte array, otherwise convert the specified subrange of bytes from the specified byte array to char_type type ant then writes result to the stream.
|
|
virtual int32_t | Read (const System::Details::ArrayView< uint8_t > &buffer, int32_t offset, int32_t count) override |
| Reads the specified number of bytes from the stream and writes them to the specified byte array.
|
|
virtual void | Write (const System::Details::ArrayView< uint8_t > &buffer, int32_t offset, int32_t count) override |
| Writes the specified subrange of bytes from the specified byte array to the stream.
|
|
virtual void | SetLength (int64_t value) override |
| Sets the length of the stream represented by the current object.
|
|
virtual void | Flush () override |
| Clears this stream's buffers and writes all buffered data to the underlying storage.
|
|
| RTTI_INFO_TEMPLATE_CLASS (ThisType, ThisTypeBaseTypesInfo) |
| RTTI information.
|
|
| BasicSTDIStreamWrapper (std::basic_istream< char_type, traits_type > &str, STDIOStreamWrappingMode mode=STDIOStreamWrappingMode::Binary) |
| Constructs a new instance of the BasicSTDIStreamWrapper.
|
|
| BasicSTDIStreamWrapper (const BasicSTDIStreamWrapper &)=delete |
| Copy constructor. Deleted.
|
|
BasicSTDIStreamWrapper & | operator= (const BasicSTDIStreamWrapper &)=delete |
| Copy assignment operator. Deleted.
|
|
| RTTI_INFO_TEMPLATE_CLASS (ThisType, ThisTypeBaseTypesInfo) |
| RTTI information.
|
|
| STDIOStreamWrapperBase (const STDIOStreamWrapperBase &)=delete |
| Copy constructor. Deleted.
|
|
STDIOStreamWrapperBase & | operator= (const STDIOStreamWrapperBase &)=delete |
| Copy assignment operator. Deleted.
|
|
virtual int64_t | Seek (int64_t offset, SeekOrigin origin) override |
| Sets the position of the stream represented by the current object.
|
|
virtual void | set_Position (int64_t value) override |
| Sets the stream's position.
|
|
virtual int64_t | get_Position () const override |
| Returns current position of the stream.
|
|
virtual int64_t | get_Length () const override |
| Returns length of the stream.
|
|
virtual bool | get_CanSeek () const override |
| Determines if the stream supports seeking.
|
|
template<std::size_t N> |
int32_t | Read (const System::Details::StackArray< uint8_t, N > &buffer, int32_t offset, int32_t count) |
| Reads the specified number of bytes from the stream and writes them to the specified byte array.
|
|
template<std::size_t N> |
void | Write (const System::Details::StackArray< uint8_t, N > &buffer, int32_t offset, int32_t count) |
| Writes the specified subrange of bytes from the specified byte array to the stream.
|
|
virtual void | Close () |
| Closes the stream.
|
|
ASPOSECPP_SHARED_API void | Dispose () override |
| Releases all resources used by the current object and closes the stream.
|
|
virtual ASPOSECPP_SHARED_API System::SharedPtr< System::IAsyncResult > | BeginRead (System::ArrayPtr< uint8_t > buffer, int offset, int count, System::AsyncCallback callback, System::SharedPtr< System::Object > state) |
| Initiates an asynchronous read operation.
|
|
virtual ASPOSECPP_SHARED_API System::SharedPtr< System::IAsyncResult > | BeginWrite (System::ArrayPtr< uint8_t > buffer, int offset, int count, System::AsyncCallback callback, System::SharedPtr< System::Object > state) |
| Initiates an asynchronous write operation.
|
|
virtual ASPOSECPP_SHARED_API int | EndRead (System::SharedPtr< System::IAsyncResult > asyncResult) |
| Waits until the specified asynchronous read operation completes.
|
|
virtual ASPOSECPP_SHARED_API void | EndWrite (System::SharedPtr< System::IAsyncResult > asyncResult) |
| Ends an asynchronous write operation. Waits until the specified asynchronous write operation completes.
|
|
ASPOSECPP_SHARED_API void | CopyTo (const SharedPtr< Stream > &destination) |
| Copies bytes to the specified stream.
|
|
ASPOSECPP_SHARED_API void | CopyTo (const SharedPtr< Stream > &destination, int32_t buffer_size) |
| Copies bytes to the specified stream, using the specified buffer size.
|
|
virtual ASPOSECPP_SHARED_API bool | get_CanTimeout () const |
| Gets a value that determines whether the current stream can time out.
|
|
virtual ASPOSECPP_SHARED_API void | set_ReadTimeout (int timeout) |
| Sets a value that determines whether the current stream can time out.
|
|
virtual ASPOSECPP_SHARED_API int | get_ReadTimeout () const |
| Gets a value, in milliseconds, that determines how long the stream will attempt to read before timing out.
|
|
virtual ASPOSECPP_SHARED_API void | set_WriteTimeout (int timeout) |
| Sets a value, in milliseconds, that determines how long the stream will attempt to read before timing out.
|
|
virtual ASPOSECPP_SHARED_API int | get_WriteTimeout () const |
| Gets a value, in milliseconds, that determines how long the stream will attempt to write before timing out.
|
|
ASPOSECPP_SHARED_API | Object () |
| Creates object. Initializes all internal data structures.
|
|
virtual ASPOSECPP_SHARED_API | ~Object () |
| Destroys object. Frees all internal data structures.
|
|
ASPOSECPP_SHARED_API | Object (Object const &x) |
| Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses.
|
|
Object & | operator= (Object const &x) |
| Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses.
|
|
Object * | SharedRefAdded () |
| Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector.
|
|
int | SharedRefRemovedSafe () |
| Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector.
|
|
int | RemovedSharedRefs (int count) |
| Decreases shared reference count by specified value.
|
|
Detail::SmartPtrCounter * | WeakRefAdded () |
| Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector.
|
|
void | WeakRefRemoved () |
| Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector.
|
|
Detail::SmartPtrCounter * | GetCounter () |
| Gets reference counter data structure associated with the object.
|
|
int | SharedCount () const |
| Gets current value of shared reference counter.
|
|
ASPOSECPP_SHARED_API void | Lock () |
| Implements C# lock() statement locking. Call directly or use LockContext sentry object.
|
|
ASPOSECPP_SHARED_API void | Unlock () |
| Implements C# lock() statement unlocking. Call directly or use LockContext sentry object.
|
|
virtual ASPOSECPP_SHARED_API bool | Equals (ptr obj) |
| Compares objects using C# Object.Equals semantics.
|
|
virtual ASPOSECPP_SHARED_API int32_t | GetHashCode () const |
| Analog of C# Object.GetHashCode() method. Enables hashing of custom objects.
|
|
virtual ASPOSECPP_SHARED_API String | ToString () const |
| Analog of C# Object.ToString() method. Enables converting custom objects to string.
|
|
virtual ASPOSECPP_SHARED_API ptr | MemberwiseClone () const |
| Analog of C# Object.MemberwiseClone() method. Enables cloning custom types.
|
|
virtual ASPOSECPP_SHARED_API const TypeInfo & | GetType () const |
| Gets actual type of object. Analog of C# System.Object.GetType() call.
|
|
virtual ASPOSECPP_SHARED_API bool | Is (const TypeInfo &targetType) const |
| Check if object represents an instance of type described by targetType. Analog of C# 'is' operator.
|
|
virtual ASPOSECPP_SHARED_API void | SetTemplateWeakPtr (uint32_t argument) |
| Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode.
|
|
virtual ASPOSECPP_SHARED_API bool | FastCast (const Details::FastRttiBase &helper, void **out_ptr) const |
| For internal purposes only.
|
|
template<> |
bool | ReferenceEquals (String const &str, std::nullptr_t) |
| Specialization of Object::ReferenceEquals for case of string and nullptr.
|
|
template<> |
bool | ReferenceEquals (String const &str1, String const &str2) |
| Specialization of Object::ReferenceEquals for case of strings.
|
|
| RTTI_INFO_TEMPLATE_CLASS (ThisType, ThisTypeBaseTypesInfo) |
| RTTI information.
|
|
| BasicSTDOStreamWrapper (std::basic_ostream< char_type, traits_type > &str, STDIOStreamWrappingMode mode=STDIOStreamWrappingMode::Binary) |
| Constructs a new instance of the BasicSTDOStreamWrapper.
|
|
| BasicSTDOStreamWrapper (const BasicSTDOStreamWrapper &)=delete |
| Copy constructor. Deleted.
|
|
BasicSTDOStreamWrapper & | operator= (const BasicSTDOStreamWrapper &)=delete |
| Copy assignment operator. Deleted.
|
|
|
virtual int64_t | Pubseekpos (int64_t value) |
| Seeks positions of read or write or both on value .
|
|
virtual void | Check () const |
| Check if the stream has been modified outside the wrapper.
|
|
virtual void | Sync () |
| Syncronize read and write positions.
|
|
void | DecodeElem (int_type meta) |
| Decodes meta and store result in the last decoded element storage.
|
|
void | DecodeElem (int_type meta, ArrayPtr< uint8_t > &destination) |
| Decodes meta and store result in the destination .
|
|
virtual bool | get_CanRead () const override |
| Determines if the stream supports reading.
|
|
| STDIOStreamWrapperBase (std::basic_ios< char_type, traits_type > &str, STDIOStreamWrappingMode mode=STDIOStreamWrappingMode::Binary, bool can_read=false, bool can_write=false, bool can_seek=false, STDIOStreamPositionPreference pref_pos=STDIOStreamPositionPreference::Zero) |
| Constructs a new instance of the STDIOStreamWrapperBase.
|
|
void | DecodeElem (int_type meta) |
| Decodes meta and store result in the last decoded element storage.
|
|
void | DecodeElem (int_type meta, ArrayPtr< uint8_t > &destination) |
| Decodes meta and store result in the destination .
|
|
char_type | EncodeElem () |
| Encodes the last decoded element storage.
|
|
char_type | EncodeElem (uint8_t *source) |
| Encodes source .
|
|
void | EncodeElem (uint8_t *source, char_type *destination) |
| Encodes source to destination .
|
|
virtual ASPOSECPP_SHARED_API void | Dispose (bool disposing) |
| Releases all resources used by the current object and closes the stream.
|
|
void | DecodeElem (int_type meta) |
| Decodes meta and store result in the last decoded element storage.
|
|
void | DecodeElem (int_type meta, ArrayPtr< uint8_t > &destination) |
| Decodes meta and store result in the destination .
|
|
char_type | EncodeElem () |
| Encodes the last decoded element storage.
|
|
char_type | EncodeElem (uint8_t *source) |
| Encodes source .
|
|
void | EncodeElem (uint8_t *source, char_type *destination) |
| Encodes source to destination .
|
|
virtual bool | get_CanWrite () const override |
| Determines if the stream supports writing.
|
|
|
static bool | ReferenceEquals (ptr const &objA, ptr const &objB) |
| Compares objects by reference.
|
|
template<typename T > |
static std::enable_if<!IsSmartPtr< T >::value, bool >::type | ReferenceEquals (T const &objA, T const &objB) |
| Compares objects by reference.
|
|
template<typename T > |
static std::enable_if<!IsSmartPtr< T >::value, bool >::type | ReferenceEquals (T const &objA, std::nullptr_t) |
| Reference-compares value type object with nullptr.
|
|
template<typename T1 , typename T2 > |
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type | Equals (T1 const &objA, T2 const &objB) |
| Compares reference type objects in C# style.
|
|
template<typename T1 , typename T2 > |
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type | Equals (T1 const &objA, T2 const &objB) |
| Compares value type objects in C# style.
|
|
static const TypeInfo & | Type () |
| Implements C# typeof(System.Object) construct.
|
|
template<> |
bool | Equals (float const &objA, float const &objB) |
| Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN.
|
|
template<> |
bool | Equals (double const &objA, double const &objB) |
| Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN.
|
|
static const System::SharedPtr< Stream > ASPOSECPP_SHARED_API | Null |
| A stream with no underlying storage.
|
|
static constexpr uint8_t | m_elem_size |
| char_type size = sizeof(char_type).
|
|
static constexpr uint8_t | m_elem_size = sizeof(char_type) |
| char_type size = sizeof(char_type).
|
|
static constexpr uint8_t | m_elem_size |
| char_type size = sizeof(char_type).
|
|
template<typename T, typename = std::enable_if_t<IsTemplateBaseOf<std::basic_iostream, T>::value>>
class System::IO::BasicSTDIOStreamWrapper< T, typename >
Represents a System.IO.Stream-like wrapper for std::basic_iostream and its derived objects. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.