Write( ) method (OutputStream)
- Last Updated: January 18, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
This method writes data from the indicated inputs to the output stream. It returns the total number of characters written for CHARACTER and LONGCHAR data inputs, or the total number of bytes written for a MEMPTR input.
Return type: INT64
Access: PUBLIC
Applies to: Progress.IO.OutputStream class
Syntax
|
- length
- Indicates how many bytes of the source-data MEMPTR the method should write to the current output stream.
- offset
- Indicates which byte of the source-data MEMPTR the method should start with when writing to the current output stream.
- source-data
- A CHARACTER, LONGCHAR, or MEMPTR variable containing the data the method will write to the output stream.
Notes
- All of the overloads of this method are defined as abstract except for
Write( INPUT target AS MEMPTR ). The behavior described for the parameters of the abstract methods are provided as guidelines. - If the size of a MEMPTR was allocated outside of the AVM (in a Windows DLL or UNIX
shared library, for example), you must use the SET-SIZE statement to initialize the MEMPTR
before calling the
Write( )method.