loadObject

 

 

Overview

Use the loadObject function to load data from an Object Closure Record. See the saveObject function for details on how to generate object closure records. The loadObject function has the following forms:

(loadObject fileID) -- Use this form to load an object closure record from an open binary file at the current file position.

(loadObject bytevector) -- Use this form to load an object closure record from a bytevector containing an object closure record.

(loadObject bufferPtr) -- Use this form to load an object closure record from a buffer. This form is most often used to load object closure records managed in C/C++ code.

An Object Closure Record is the basic unit of storage in the Analytic Information Server file system and it is a serialized representation of Analytic Information Server Object. A detailed description of the Object Closure Record is described in Object Closure Section of this chapter.

Usage

Use the loadObject function to load data of Object or Immediate type from an Object Closure Record previously created by the saveObject function.

 

Syntax


Expression:

(loadObject fileID)

(loadObject bytevector)

(loadObject bufferPtr)


Arguments Name Type Description
Argument:fileIDInteger Integer representing the fileID of the binary file previously opened by fileOpen.
Argument:bytevectorByteVector A bytevector argument containing an object closure record.
Argument:bufferPtrByteVector A pointer to a memory buffer containing an object closure record.

Returns:

The loadObject function returns either the Object or Immediate data contained in the object closure record.



 

Examples

Here are a number of links to Lambda coding examples which contain this instruction in various use cases.

 

Argument Types

Here are the links to the data types of the function arguments.

ByteVector

Here are also a number of links to functions having arguments with any of these data types.

addMethod appendWriteln binaryInsert bitwiseNot
boolean compress cons decode
dimension display encode fdisplay
fileClose fileCopy fileDisplay fileErase
fileOpen fileRead fileWriteAll fileWrite
filewriteln inside integer isAtom
isBitVector isBoolean isByteVector isCharAlphabetic
isCharAlphanumeric isCharLowercase isCharName isCharNumeric
isCharUppercase isCharWhitespace isChar isCharacter
isComplex isDate isDictionary isDirectory
isEqual isError isFloatVector isIdentical
isInside isIntegerVector isInteger isLambda
isMatrix isMember isMoney isNumberMatrix
isNumberVector isNumber isObjectVector isObject
isPair isPcodeVector isString isStructure
isSymbol isText isType isVector
length list loadObject macroReplace
makeQuotedList member money new
number offset pair parent
parse pointer qt remove
run saveObject setCar setCdr
setLastCdr setq sizeof string
system type uncompress uniqueInsert
vectorFill writelg writeln

Analytic Information Server (AIS)

AIS Component Systems

  • Smartbase Engine
  • QT C++ Libraries
  • MySQL Relational Database
  • AIS Lisp Libraries
  • Rapid Analytic Demo IDE