data type
Library: Buffers (OMIOBUF)
Import : omiobuf.xmd |
Use the iobuf.buffer
opaque data type to hold data. It is written to
by iobuf.writer
and read from by iobuf.reader
.
The following program uses an instance of iobuf.buffer
to hold data and subsequently output it.
import "omiobuf.xmd" prefixed by iobuf. process local iobuf.buffer b using output as iobuf.writer of b output "Hello, World!%n" output iobuf.reader of b
To use iobuf.buffer
, you must import OMIOBUF into your program using an import declaration such as:
import "omiobuf.xmd" prefixed by io.