loadObject

 

 

Description

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.

When to use

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

 

Syntax

(loadObject fileID)

(loadObject bytevector)

(loadObject bufferPtr)



Name Description AIS Types
fileID Integer representing the fileID of the binary file previously opened by fileOpen.Integer
bytevector A bytevector argument containing an object closure record.ByteVector
bufferPtr A pointer to a memory buffer containing an object closure record.ByteVector


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(BitVector) addMethod(Boolean) addMethod(Brick) addMethod(Character)
addMethod(CpxVector) addMethod(Date) addMethod(Dictionary) addMethod(Directory)
addMethod(FltVector) addMethod(Function) addMethod(IntVector) addMethod(List)
addMethod(Matrix) addMethod(NumMatrix) addMethod(NumVector) addMethod(Number)
addMethod(ObjVector) addMethod(ObjectRepository) addMethod(Pair) addMethod(PcodeVector)
addMethod(ShortVector) addMethod(String) addMethod(Structure) addMethod(Symbol)
addMethod(Vector) addMethod(Void) appendWriteln(ByteVector) binaryInsert(CpxVector)
binaryInsert(FltVector) binaryInsert(IntVector) binaryInsert(Matrix) binaryInsert(NumMatrix)
binaryInsert(NumVector) binaryInsert(ShortVector) binaryInsert(Structure) binaryInsert(Vector)
bitwiseNot(Integer) boolean(Boolean) character(Character) compress(ByteVector)
cons(Pair) decode(ByteVector) display(ByteVector) display(FileIO)
encode(ByteVector) fdisplay(ByteVector) fdisplay(Text) fileClose(ByteVector)
fileClose(Text) fileDisplay(ByteVector) fileDisplay(Text) fileErase(ByteVector)
fileErase(Text) fileOpen(ByteVector) fileOpen(Text) fileRead(ByteVector)
fileRead(Text) fileWrite(ByteVector) fileWrite(String) fileWrite(Text)
filewriteln(ByteVector) filewriteln(String) filewriteln(Text) inside(BitVector)
inside(Dictionary) inside(Directory) inside(IntVector) inside(List)
inside(Matrix) inside(NumMatrix) inside(NumVector) inside(ShortVector)
inside(Structure) inside(Vector) integer(Integer) isAtom(BitVector)
isAtom(Brick) isAtom(Dictionary) isAtom(Directory) isAtom(FltVector)
isAtom(IntVector) isAtom(List) isAtom(Matrix) isAtom(NumMatrix)
isAtom(NumVector) isAtom(ObjVector) isAtom(Pair) isAtom(PcodeVector)
isAtom(ShortVector) isAtom(Structure) isAtom(Vector) isBitVector(BitVector)
isBoolean(Boolean) isByteVector(ByteVector) isCharAlphabetic(ByteVector) isCharAlphabetic(String)
isCharAlphabetic(Symbol) isCharAlphanumeric(ByteVector) isCharAlphanumeric(String) isCharAlphanumeric(Symbol)
isCharLowercase(ByteVector) isCharLowercase(String) isCharLowercase(Symbol) isCharName(ByteVector)
isCharName(String) isCharName(Symbol) isCharNumeric(ByteVector) isCharNumeric(String)
isCharNumeric(Symbol) isCharUppercase(ByteVector) isCharUppercase(String) isCharUppercase(Symbol)
isCharWhitespace(ByteVector) isCharWhitespace(String) isCharWhitespace(Symbol) isChar(String)
isCharacter(Character) isComplex(Complex) isDate(Date) isDictionary(Dictionary)
isDirectory(Directory) isEqual(BitVector) isEqual(Boolean) isEqual(Brick)
isEqual(Character) isEqual(Complex) isEqual(Date) isEqual(Dictionary)
isEqual(Directory) isEqual(FltVector) isEqual(Function) isEqual(IntVector)
isEqual(List) isEqual(Matrix) isEqual(NumMatrix) isEqual(NumVector)
isEqual(Number) isEqual(ObjVector) isEqual(Pair) isEqual(ShortVector)
isEqual(String) isEqual(Structure) isEqual(Vector) isEqual(Void)
isError(Error) isFloatVector(FltVector) isIdentical(BitVector) isIdentical(Boolean)
isIdentical(Brick) isIdentical(Character) isIdentical(Complex) isIdentical(Date)
isIdentical(Dictionary) isIdentical(Directory) isIdentical(Error) isIdentical(FltVector)
isIdentical(Function) isIdentical(IntVector) isIdentical(List) isIdentical(Matrix)
isIdentical(NumMatrix) isIdentical(NumVector) isIdentical(Number) isIdentical(ObjVector)
isIdentical(ObjectRepository) isIdentical(Pair) isIdentical(PcodeVector) isIdentical(ShortVector)
isIdentical(Structure) isIdentical(Vector) isIdentical(Void) isInside(BitVector)
isInside(Dictionary) isInside(Directory) isInside(IntVector) isInside(List)
isInside(Matrix) isInside(NumMatrix) isInside(NumVector) isInside(ObjVector)
isInside(Pair) isInside(ShortVector) isInside(Structure) isInside(Vector)
isIntegerVector(IntVector) isInteger(Integer) isMatrix(Matrix) isMember(BitVector)
isMember(Dictionary) isMember(Directory) isMember(IntVector) isMember(List)
isMember(Matrix) isMember(NumMatrix) isMember(NumVector) isMember(ObjVector)
isMember(Pair) isMember(ShortVector) isMember(Structure) isMember(Vector)
isMoney(Number) isNumberMatrix(NumMatrix) isNumberVector(NumVector) isNumber(Number)
isObjectVector(ObjVector) isObject(BitVector) isObject(Brick) isObject(ByteVector)
isObject(Dictionary) isObject(Directory) isObject(FltVector) isObject(IntVector)
isObject(List) isObject(Matrix) isObject(NumMatrix) isObject(NumVector)
isObject(ObjVector) isObject(Pair) isObject(PcodeVector) isObject(ShortVector)
isObject(String) isObject(Structure) isObject(Symbol) isObject(Vector)
isPair(List) isPair(Pair) isPcodeVector(PcodeVector) isString(String)
isStructure(Structure) isSymbol(Symbol) isText(String) isType(BitVector)
isType(Boolean) isType(Brick) isType(Character) isType(Complex)
isType(Date) isType(Dictionary) isType(Directory) isType(FltVector)
isType(Function) isType(IntVector) isType(Matrix) isType(NumMatrix)
isType(NumVector) isType(Number) isType(ObjVector) isType(ObjectRepository)
isType(Pair) isType(ShortVector) isType(String) isType(Structure)
isType(Symbol) isType(Vector) isType(Void) isVector(Vector)
length(BitVector) length(Brick) length(Dictionary) length(Directory)
length(FltVector) length(IntVector) length(List) length(Matrix)
length(NumMatrix) length(NumVector) length(ObjVector) length(ObjectRepository)
length(Pair) length(PcodeVector) length(ShortVector) length(String)
length(Structure) length(Symbol) length(Vector) list(List)
loadObject(ByteVector) macroReplace(String) makeQuotedList(List) member(BitVector)
member(Dictionary) member(Directory) member(IntVector) member(List)
member(Matrix) member(NumMatrix) member(NumVector) member(ObjVector)
member(ShortVector) member(Structure) member(Vector) money(Number)
new(BitVector) new(Brick) new(ByteVector) new(CpxVector)
new(Dictionary) new(Directory) new(FltVector) new(IntVector)
new(Lambda) new(Matrix) new(NumMatrix) new(NumVector)
new(ObjVector) new(ObjectRepository) new(PcodeVector) new(ShortVector)
new(String) new(Structure) new(Symbol) new(Vector)
number(Number) pair(Pair) parse(String) remove(BitVector)
remove(Dictionary) remove(Directory) remove(IntVector) remove(Matrix)
remove(NumMatrix) remove(NumVector) remove(ObjVector) remove(ShortVector)
remove(Structure) remove(Vector) run(ByteVector) run(Text)
saveObject(ByteVector) saveObject(Integer) setCar(List) setCar(Pair)
setCdr(BitVector) setCdr(Brick) setCdr(Dictionary) setCdr(Directory)
setCdr(FltVector) setCdr(IntVector) setCdr(List) setCdr(Matrix)
setCdr(NumMatrix) setCdr(NumVector) setCdr(ObjVector) setCdr(Pair)
setCdr(ShortVector) setCdr(Structure) setCdr(Vector) setLastCdr(BitVector)
setLastCdr(FltVector) setLastCdr(IntVector) setLastCdr(List) setLastCdr(Matrix)
setLastCdr(NumMatrix) setLastCdr(NumVector) setLastCdr(ObjVector) setLastCdr(Structure)
setLastCdr(Vector) setq(BitVector) setq(Boolean) setq(Brick)
setq(Character) setq(Date) setq(Dictionary) setq(Directory)
setq(FltVector) setq(IntVector) setq(Lambda) setq(List)
setq(Matrix) setq(NumVector) setq(Number) setq(ObjVector)
setq(ObjectRepository) setq(PcodeVector) setq(ShortVector) setq(String)
setq(Structure) setq(Symbol) setq(Vector) setq(Void)
sizeof(BitVector) sizeof(Boolean) sizeof(Brick) sizeof(ByteVector)
sizeof(Character) sizeof(Complex) sizeof(Date) sizeof(Dictionary)
sizeof(Directory) sizeof(FltVector) sizeof(Function) sizeof(IntVector)
sizeof(List) sizeof(Matrix) sizeof(NumMatrix) sizeof(NumVector)
sizeof(Number) sizeof(ObjVector) sizeof(ObjectRepository) sizeof(Pair)
sizeof(PcodeVector) sizeof(ShortVector) sizeof(String) sizeof(Structure)
sizeof(Symbol) sizeof(Vector) sizeof(Void) string(Complex)
string(String) system(ByteVector) system(Text) type(BitVector)
type(Boolean) type(Brick) type(ByteVector) type(Character)
type(Complex) type(Date) type(Dictionary) type(Directory)
type(FltVector) type(Function) type(IntVector) type(Lambda)
type(Matrix) type(NumMatrix) type(NumVector) type(Number)
type(ObjVector) type(ObjectRepository) type(Pair) type(PcodeVector)
type(ShortVector) type(String) type(Structure) type(Symbol)
type(Vector) type(Void) uncompress(ByteVector) uniqueInsert(FltVector)
uniqueInsert(IntVector) uniqueInsert(Matrix) uniqueInsert(NumMatrix) uniqueInsert(NumVector)
uniqueInsert(ObjVector) uniqueInsert(ShortVector) uniqueInsert(Structure) uniqueInsert(Vector)
vectorFill(BitVector) vectorFill(FltVector) vectorFill(IntVector) vectorFill(Matrix)
vectorFill(NumMatrix) vectorFill(NumVector) vectorFill(ObjVector) vectorFill(ShortVector)
vectorFill(Vector) writeln(ByteVector) writeln(String) writeln(Text)

How do I contact the AIS team?

You can always talk with the AIS at aiserver.sourceforge.net.