Guardian Programmer's Guide

Table Of Contents
Using the IOEdit Procedures
Guardian Programmer’s Guide 421922-014
14 - 6
Packed Line Format
The first byte of the packed line is the header byte. It contains the length of the packed
line. If the line is blank, then the header byte contains 0 and there are no following line
segments.
If the header byte is nonzero, then one or more line segments follow. Each line
segment contains a header byte and from 0 through 15 nonblank characters. The
upper four bits of the header byte indicate the number of blank characters that precede
the nonblank characters in the unpacked line. The lower four bits represent the
number of nonblank characters in the line segment. A line segment can thus represent
up to 15 consecutive blank characters that can precede up to 15 consecutive nonblank
characters.
To represent more than 15 consecutive blanks, the packed line uses a single-byte line
segment that indicates 15 preceding blanks and no nonblank characters, followed by
another line segment indicating some more blanks before the nonblank characters
begin. Similarly, more than 15 consecutive nonblank characters are represented by a
line segment that indicates some preceding blanks and 15 nonblank characters,
followed by a line segment with no preceding blanks and some more nonblank
characters.
Figure 14-1. An IOEdit Packed Line
VST078.VSD