swirl
Guide to OmniMark 7   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
 
 

iobuf.buffer

 

 

Use the iobuf.buffer OMX to hold data. It is written to by writer and read from by reader.

Usage Note

The OmniMark I/O Buffers dynamic link library file ("omiobuf.dll") creates the iobuf.buffer OMX component. The related module ("omiobuf.xmd") defines the interface to that component.

To use omiobuf, you must import it into your program using a statement like this:

  import "omiobuf.xmd" prefixed by io.

(Please see the import topic for more on importing.)

Please refer to OMX Components for a general description of OMX components and how they are used.

Example


  ; Open a buffer and attach it to a stream.  Write data to the
  ; buffer via the stream.  Close it, and then use the data by
  ; reading it from the buffer.
  import "omiobuf.xmd" prefixed by io.
  global io.buffer b
  global stream s
  process
     open s as io.writer of b
     ; write data to "s"
     close s
     output io.reader of b

   
 

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ LEGACYLIBRARIES ] [ ERRORS ]

OmniMark 7.1.2 Documentation Generated: June 28, 2005 at 5:45:20 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © Stilo Corporation, 1988-2005.