18.08.2013 Views

(SYSLIB) Programming Reference Manual - Public Support Login ...

(SYSLIB) Programming Reference Manual - Public Support Login ...

(SYSLIB) Programming Reference Manual - Public Support Login ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SAR$ WRITE<br />

The calling program must provide storage space for the WRITE packet data structure<br />

plus any necessary buffers and tables since SAR$ does not have any D-bank storage.<br />

The length of the WRITE packet is equal to the constant<br />

SAR_WRITE_PACKET_WORD_LENGTH defined in the element SAR$WPKTD (current<br />

length is 36 words). SAR_WRITE_PACKET is defined as LOCATABLE.<br />

The calling program places information in the WRITE packet data structure and passes<br />

the address of the WRITE packet data structure to SAR$ as a parameter on the<br />

procedure calls.<br />

18.1.1.1. Required Information for WRITE Procedures<br />

The calling program must set the following fields of the WRITE packet to an appropriate<br />

value:<br />

PACKET_VERSION<br />

PLUS Attribute: 6-bit integer<br />

The WRITE packet data structure version. The current version is equal to the<br />

constant SAR_WRITE_PACKET_CURRENT_VERSION defined in the element<br />

SAR$WPKTD.<br />

OUTPUT_FILE_INFO_PKT_ADDRESS<br />

PLUS Attribute: word pointer<br />

The address of the output file information packet. This packet is supplied by the<br />

caller (see 18.1.2). Set to NULL if OUTPUT_FILE_TYPE is S'PRINT_File',<br />

S'PUNCH_File', or S'No_Output'.<br />

OUTPUT_BUFFER_ADDRESS<br />

PLUS Attribute: word pointer<br />

The address of the output buffer, used to write images to the output file or element.<br />

This field is defined only if output is to an SDF file or element. It is omitted if output<br />

is to a symbiont file. Subsection 18.1.2 describes the output buffer.<br />

OUTPUT_BUFFER_WORD_LENGTH<br />

PLUS Attribute: 18-bit integer<br />

The length in words of the output buffer. It must be of length 28 * dpf * n, where<br />

dpf is the disk prepping factor and n is a positive integer. This field is defined only if<br />

output is to an SDF file or element. It is omitted if output is to a symbiont file.<br />

18–2 7833 1733–004

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!