|
PLCnext API Documentation 25.9.0.13
|

Public Member Functions | |
| MemoryStream (void) | |
| Initializes a new instance of the T:System.IO.MemoryStream class with an expandable capacity initialized to zero. | |
| 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. | |
| MemoryStream & | operator= (const MemoryStream &arg)=delete |
| Assignment operator. | |
| virtual | ~MemoryStream (void) |
| Destructs this instance and frees all resources. | |
| size_t | GetLength (void) |
| void | SetLength (size_t value) |
| size_t | GetPosition (void) override |
| Gets the position of the stream, if it can seek. More... | |
| void | SetPosition (size_t value) override |
| Sets the position of the stream, if it can seek. More... | |
| size_t | GetCapacity (void) |
| void | SetCapacity (size_t value) |
| size_t | Seek (size_t offset, SeekOrigin origin) override |
| size_t | Read (byte *pBuffer, size_t bufferSize, size_t offset, size_t count) override |
| void | Write (const byte *pBuffer, size_t bufferSize, size_t offset, size_t count) override |
| void | Flush (void) override |
| std::vector< byte > | ToArray (void) |
Public Member Functions inherited from Arp::Base::Commons::Io::Stream | |
| Stream (bool canRead=false, bool canWrite=false, bool canSeek=false) | |
| This constructor is used to constructs a base stream instance. More... | |
| Stream (const Stream &arg) | |
| Default copy constructor. More... | |
| Stream (Stream &&arg) noexcept | |
| Default move constructor. More... | |
| Stream & | operator= (const Stream &arg) |
| Default copy-assignment operator. More... | |
| Stream & | operator= (Stream &&arg) noexcept |
| Default move-assignment operator. More... | |
| virtual | ~Stream (void) |
| Default destructor. | |
| virtual bool | CanRead (void) |
| Determines if the derived stream can read. More... | |
| virtual bool | CanWrite (void) |
| Determines if the derived stream can write. More... | |
| virtual bool | CanSeek (void) |
| Determines if the derived stream can seek. More... | |
| virtual void | SetPosition (size_t value) |
| Sets the position of the stream, if it can seek. More... | |
| virtual size_t | GetPosition (void) |
| Gets the position of the stream, if it can seek. More... | |
| virtual size_t | Seek (size_t offset, SeekOrigin origin)=0 |
| virtual size_t | Read (byte *pBuffer, size_t bufferSize, size_t bufferOffset, size_t count)=0 |
| virtual void | Write (const byte *pBuffer, size_t bufferSize, size_t bufferOffset, size_t count)=0 |
| virtual void | Flush (void)=0 |
| virtual byte | ReadByte (void) |
Reads a single byte from the stream. More... | |
| virtual void | WriteByte (byte value) |
Writes a single byte to the stream. More... | |
| virtual void | WriteTo (Stream &other) |
| Writes the data this stream to another stream entirely. More... | |
| virtual void | ReadFrom (Stream &other) |
| Reads the entire data from another stream into this stream. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from Arp::Base::Commons::Io::Stream | |
| static Stream & | GetEmpty (void) |
| Gets an empty stream. More... | |
|
explicit |
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. |
| Arp::System::Commons::Io::MemoryStream::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.
| buffer | The array of unsigned bytes from which to create the current stream. |
| T:System.ArgumentNullException | buffer is null. |
| Arp::System::Commons::Io::MemoryStream::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.
| 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. |
| Arp::System::Commons::Io::MemoryStream::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.
| 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. |
| Arp::System::Commons::Io::MemoryStream::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.
| 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. |
| Arp::System::Commons::Io::MemoryStream::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.
| 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. |
|
overridevirtual |
Implements Arp::Base::Commons::Io::Stream.
|
overridevirtual |
Gets the position of the stream, if it can seek.
| value | The current position of the stream. |
| NotSupportedException | If this stream cannot seek. |
Reimplemented from Arp::Base::Commons::Io::Stream.
|
overridevirtual |
Implements Arp::Base::Commons::Io::Stream.
|
overridevirtual |
Sets the position of the stream, if it can seek.
| value | The new position of the stream. |
| NotSupportedException | If this stream cannot seek. |
Reimplemented from Arp::Base::Commons::Io::Stream.
|
overridevirtual |
Implements Arp::Base::Commons::Io::Stream.