PLCnext API Documentation
22.9.0.33
|
Public Member Functions | |
MemoryStream (void) | |
Initializes a new instance of the T:System.IO.MemoryStream class with an expandable capacity initialized to zero. More... | |
MemoryStream (size_t capacity) | |
Initializes a new instance of the T:System.IO.MemoryStream class with an expandable capacity initialized as specified. More... | |
MemoryStream (byte *buffer, size_t bufferSize) | |
Initializes a new non-resizable instance of the T:System.IO.MemoryStream class based on the specified byte array. More... | |
MemoryStream (byte *buffer, size_t bufferSize, boolean writable) | |
Initializes a new non-resizable instance of the T:System.IO.MemoryStream class based on the specified byte array with the P:System.IO.MemoryStream.CanWrite property set as specified. More... | |
MemoryStream (byte *buffer, size_t bufferSize, size_t index, size_t count) | |
Initializes a new non-resizable instance of the T:System.IO.MemoryStream class based on the specified region (index) of a byte array. More... | |
MemoryStream (byte *buffer, size_t bufferSize, size_t index, size_t count, boolean writable) | |
Initializes a new non-resizable instance of the T:System.IO.MemoryStream class based on the specified region of a byte array, with the P:System.IO.MemoryStream.CanWrite property set as specified. More... | |
MemoryStream (byte *buffer, size_t bufferSize, size_t index, size_t count, boolean writable, boolean publiclyVisible) | |
Initializes a new instance of the T:System.IO.MemoryStream class based on the specified region of a byte array, with the P:System.IO.MemoryStream.CanWrite property set as specified, and the ability to call M:System.IO.MemoryStream.GetBuffer set as specified. More... | |
MemoryStream (const MemoryStream &arg)=delete | |
Copy constructor. More... | |
MemoryStream & | operator= (const MemoryStream &arg)=delete |
Assignment operator. More... | |
virtual | ~MemoryStream (void) |
Destructs this instance and frees all resources. More... | |
boolean | CanRead (void) override |
boolean | CanWrite (void) override |
boolean | CanSeek (void) override |
size_t | GetLength (void) override |
void | SetLength (size_t argLength) override |
size_t | GetPosition (void) override |
void | SetPosition (size_t argPostion) override |
virtual size_t | GetCapacity (void) |
virtual void | SetCapacity (size_t argCapacity) |
void | Flush (void) override |
size_t | Seek (size_t offset, SeekOrigin origin) override |
size_t | Read (byte *pBuffer, size_t bufferSize, size_t offset, size_t count) override |
std::vector< byte > | ToArray (void) |
void | Write (const byte *pBuffer, size_t bufferSize, size_t offset, size_t count) override |
virtual void | WriteTo (Stream &stream) |
![]() | |
Stream (void) | |
Constructs an Stream instance. More... | |
Stream (const Stream &arg)=delete | |
Copy constructor. More... | |
Stream & | operator= (const Stream &arg)=delete |
Assignment operator. More... | |
virtual | ~Stream (void) |
Destructs this instance and frees all resources. More... | |
virtual byte | ReadByte (void) |
virtual void | WriteByte (byte value) |
virtual void | CopyTo (Stream &other) |
void | Dispose (void) |
void | Close (void) |
Protected Member Functions | |
void | InternalDispose (void) override |
![]() | |
boolean | IsDisposed (void) |
void | CheckDisposed (void) |
Additional Inherited Members | |
![]() | |
static NullStream | Empty |
|
inline |
Initializes a new instance of the T:System.IO.MemoryStream class with an expandable capacity initialized to zero.
|
inline |
Initializes a new instance of the T:System.IO.MemoryStream class with an expandable capacity initialized as specified.
capacity | The initial size of the internal array in bytes. |
T:System.ArgumentOutOfRangeException | capacity is negative. |
|
inline |
Initializes a new non-resizable instance of the T:System.IO.MemoryStream class based on the specified byte array.
buffer | The array of unsigned bytes from which to create the current stream. |
T:System.ArgumentNullException | buffer is null. |
|
inline |
Initializes a new non-resizable instance of the T:System.IO.MemoryStream class based on the specified byte array with the P:System.IO.MemoryStream.CanWrite property set as specified.
buffer | The array of unsigned bytes from which to create this stream. |
writable | The setting of the P:System.IO.MemoryStream.CanWrite property, which determines whether the stream supports writing. |
T:System.ArgumentNullException | buffer is null. |
|
inline |
Initializes a new non-resizable instance of the T:System.IO.MemoryStream class based on the specified region (index) of a byte array.
count | The length of the stream in bytes. |
buffer | The array of unsigned bytes from which to create this stream. |
index | The index into buffer at which the stream begins. |
T:System.ArgumentNullException | buffer is null. |
T:System.ArgumentOutOfRangeException | index or count is less than zero. |
T:System.ArgumentException | The sum of index and count is greater than the length of buffer. |
|
inline |
Initializes a new non-resizable instance of the T:System.IO.MemoryStream class based on the specified region of a byte array, with the P:System.IO.MemoryStream.CanWrite property set as specified.
count | The length of the stream in bytes. |
buffer | The array of unsigned bytes from which to create this stream. |
writable | The setting of the P:System.IO.MemoryStream.CanWrite property, which determines whether the stream supports writing. |
index | The index in buffer at which the stream begins. |
T:System.ArgumentException | The sum of index and count is greater than the length of buffer. |
T:System.ArgumentNullException | buffer is null. |
T:System.ArgumentOutOfRangeException | index or count are negative. |
|
inline |
Initializes a new instance of the T:System.IO.MemoryStream class based on the specified region of a byte array, with the P:System.IO.MemoryStream.CanWrite property set as specified, and the ability to call M:System.IO.MemoryStream.GetBuffer set as specified.
count | The length of the stream in bytes. |
buffer | The array of unsigned bytes from which to create this stream. |
writable | The setting of the P:System.IO.MemoryStream.CanWrite property, which determines whether the stream supports writing. |
publiclyVisible | true to enable M:System.IO.MemoryStream.GetBuffer, which returns the unsigned byte array from which the stream was created; otherwise, false. |
index | The index into buffer at which the stream begins. |
T:System.ArgumentOutOfRangeException | index or count is negative. |
T:System.ArgumentException | The buffer length minus index is less than count. |
T:System.ArgumentNullException | buffer is null. |
|
delete |
Copy constructor.
|
inlinevirtual |
Destructs this instance and frees all resources.
|
delete |
Assignment operator.