[Overview][Constants][Types][Procedures and functions][Index] Reference for unit 'amigados' (#aros)

InternalLoadSeg

Low-level load routine

Declaration

Source position: amigados.pas line 2371

function InternalLoadSeg(

  Fh: BPTR;

  Table: BPTR;

  const FuncArray: PLongInt;

  var Stack: LongInt

):BPTR;

Arguments

Fh

  

Filehandle to load from

Table

  

ignored

FuncArray

  

array of functions to be used for read, seek, alloc and free

Stack

  

pointer to storage for stacksize. (currently ignored)

Function result

Pointer to loaded Seglist or nil in case of failure.

Description

Loads from fh. Functionarray is a pointer to an array of functions.

This function really only tries to load the different file formats aos, elf and aout.

FuncTable[0]
bytes = ReadFunc(readhandle, buffer, length), DOSBase
FuncTable[1]
Memory = AllocFunc(size,flags), ExecBase
FuncTable[2]
FreeFunc(memory, size), ExecBase
FuncTable[3] -
pos = SeekFunc(readhandle, pos, mode), DOSBase

See also

LoadSeg

  

Scatterload a loadable file into memory

UnLoadSeg

  

Unload a seglist previously loaded by LoadSeg()

NewLoadSeg

  

Improved version of LoadSeg for stacksizes

InternalUnLoadSeg

  

Unloads a seglist loaded with InternalLoadSeg()


Documentation generated on: 2017-01-10