Progress.IO.MemoryOutputStream class
- Last Updated: October 16, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
This class is responsible for streaming data to
memory. A MemoryOutputStream object enables write operations to memory and
is expandable. It encapsulates the MEMPTR data type and simplifies MEMPTR operations.
Progress.IO.MemoryOutputStream extends
Progress.IO.OutputStream:

As with other output
stream classes, the MemoryOutputStream class maintains its own internal
write position and eliminates the need to keep track of MEMPTR write
positions.
Serializable
No
Constructors
|
- size
- The
DataandLengthproperties are initialized to the value specified by size.When size is not specified, the
DataandLengthproperties are initialized to0.
Super Class
Interfaces
This class does not implement an interface.
Public Properties
| ByteOrder property | BytesWritten property |
| Data property | Length property (MemoryOutputStream) |
Public Methods
Public Events
This class does not define events.
Note
The following table illustrates values that result from constructors and
Write( )/Clear( ) methods:
| Method/Constructor | Values | |
| Obj:Length | Obj:BytesWritten | |
Obj = NEW
MemoryOutputStream() |
0 | 0 |
Obj:Write(“12345”) |
5 | 5 |
Obj:Clear() |
0 | 0 |
Obj = NEW
MemoryOutputStream(100) |
100 | 0 |
Obj:Write(“12345678”) |
100 | 8 |
Obj:Clear() |
100 | 0 |
Examples
|
|
See also
OpenEdge Programming Interfaces for more information about MEMPTR.