System::IO::UnmanagedMemoryStream class

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

MethodDescription
Flush() overrideDoes nothing.
get_CanRead() const overrideDetermines if the stream is readable.
get_CanSeek() const overrideDetermines if the stream supports seeking.
get_CanWrite() const overrideDetermines if the stream is writable.
virtual get_Capacity() constReturns the current capacity of the underlying memory buffer.
get_Length() const overrideReturns the length of the stream in bytes.
get_Position() const overrideReturns the current position of the stream.
get_PositionPointer()NOT IMPLEMENTED.
Read(const ArrayPtr<uint8_t>&, int32_t, int32_t) overrideReads 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) overrideReads the specified number of bytes from the stream and writes them to the specified byte array.
Seek(int64_t, SeekOrigin) overrideSets the position of the stream represented by the current object.
set_Position(int64_t) overrideSets the stream’s position.
set_PositionPointer(uint8_t *)NOT IMPLEMENTED.
SetLength(int64_t) overrideNOT 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) overrideNOT IMPLEMENTED.
Write(const System::Details::ArrayView<uint8_t>&, int32_t, int32_t) overrideNOT IMPLEMENTED.

Fields

FieldDescription
static NullA stream with no underlying storage.

See Also