System::IO::UnmanagedMemoryStream class
Contents
[
Hide
]UnmanagedMemoryStream class
Provides access to unmanaged memory. 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.
class UnmanagedMemoryStream : public System::IO::Stream
Methods
Method | Description |
---|---|
Flush() override | Does nothing. |
get_CanRead() const override | Determines if the stream is readable. |
get_CanSeek() const override | Determines if the stream supports seeking. |
get_CanWrite() const override | Determines if the stream is writable. |
virtual get_Capacity() const | Returns the current capacity of the underlying memory buffer. |
get_Length() const override | Returns the length of the stream in bytes. |
get_Position() const override | Returns the current position of the stream. |
get_PositionPointer() | NOT IMPLEMENTED. |
Read(const ArrayPtr<uint8_t>&, int32_t, int32_t) override | Reads the specified number of bytes from the stream and writes them to the specified byte array. |
Read(const System::Details::ArrayView<uint8_t>&, int32_t, int32_t) override | Reads the specified number of bytes from the stream and writes them to the specified byte array. |
Seek(int64_t, SeekOrigin) override | Sets the position of the stream represented by the current object. |
set_Position(int64_t) override | Sets the stream’s position. |
set_PositionPointer(uint8_t *) | NOT IMPLEMENTED. |
SetLength(int64_t) override | NOT IMPLEMENTED. |
UnmanagedMemoryStream(uint8_t *, int64_t) | Constructs a new instance of UnmanagedMemoryStream. |
UnmanagedMemoryStream(uint8_t *, int64_t, int64_t, FileAccess) | Constructs a new instance of UnmanagedMemoryStream. |
Write(const ArrayPtr<uint8_t>&, int32_t, int32_t) override | NOT IMPLEMENTED. |
Write(const System::Details::ArrayView<uint8_t>&, int32_t, int32_t) override | NOT IMPLEMENTED. |
Fields
Field | Description |
---|---|
static Null | A stream with no underlying storage. |
See Also
- Class Stream
- Namespace System::IO
- Library Aspose.TeX for C++