(C) 1998 AROS - The Amiga Research OS


NAME

void InitStruct ( initTable , memory , size)

LOCATION
In SysBase at offset 13

SYNOPSIS
APTR initTable
APTR memory
ULONG size

FUNCTION
Initialize some library base or other structure depending on the information in the init table. The init table consists of instructions starting with an action byte followed by more information. The instruction byte looks like:

iisscccc where ii is the instruction code: 0 - copy following c+1 elements 1 - repeat following element c+1 times 2 - take next byte as offset, then copy 3 - take the next 3 bytes (in the machine's particular byte ordering) as offset, then copy ss is the element size 0 - LONGs 1 - WORDs 2 - BYTEs cccc is the element count-1

Instruction bytes must follow the same alignement restrictions as LONGs, the following elements are aligned to their particular restrictions.

A 0 instruction ends the init table.

INPUTS
initTable
Pointer to init table.
memory
Pointer to uninitialized structure.
size
Size of memory area to 0 out before decoding or 0 for no filling.

RESULT

EXAMPLE

SEE ALSO

NOTES

BUGS

INTERNALS

HISTORY