iif(3)

Section: Interp SDK (3)
Updated: 2011-05-22

NAME

iif - encapsulates the Interp Image Format functions

SYNOPSIS

#include itypes.h
#include iif.h

unsigned long int iif_get_length_field( ibyte *opcode);
int iif_record_type( ibyte record_type);
int iif_is_eodr( ibyte record_type);

DESCRIPTION

These functions are the abstraction layer between interp and the detailed structure of the IIF records.

LIST OF FUNCTIONS

Function
Description
iif_get_length_field
Upon entry count points to the first byte of the IIF record, the Record Type. The next 4 bytes are the length field value in LSB-first order. They are read from memory, assembled into the value and returned.
iif_record_type
Tests record_type to see if it is valid. It returns 1 (TRUE) if it is valid, or 0 (FALSE) if the value is not a valid Record Type.
iif_is_eodr
Tests record_type to see if it is the End-of-Data Record Type. It returns 1 (TRUE) if it is, or 0 (FALSE) if it is not the End-of-Data Record Type.