swirl
Guide to OmniMark 9   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
  Related Topics   Other Library Functions  
data type  

iobuf.buffer

 
 

Library: Buffers (OMIOBUF)
Import: omiobuf.xmd


Purpose

Use the iobuf.buffer opaque data type 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 data type. The related module ("omiobuf.xmd") defines the interface to that type.

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 Opaque Data Types for a general description of opaque data types 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

    Related Topics
 
Other Library Functions
 
 

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

OmniMark 9.1.0 Documentation Generated: September 2, 2010 at 1:38:10 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2010.