Clear( ) method (MemoryOutputStream)
- Last Updated: January 18, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Causes the MemoryOutputStream object's Data
and Length properties to be freed and their size set to
their initial values when the MemoryOutputStream object was instantiated.
Return type: VOID
Access: PUBLIC
Applies to:Progress.IO.MemoryOutputStream class
Syntax
|
Notes
- The
Clear( )method does not reset a stream's byte-order if the byte-order was changed by theSetByteOrder( )method. - 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