Example Brick sizeof 029

 

 

Description

These examples show that the sizeof function return the Object Closure Size.

 

Details

A Brick with 2 rows and one field is defined.

(define nameList (new Brick: 2 Name:Object:3)) Returns: #<Record 123456>
(sizeof nameList) Returns: 272

A Brick with 2 rows and 3 fields is defined.

(define customerList (new Brick: 2 Name:Object:1 Mortagage:Number:5 Payment:Number:5)) Returns: #<Record 123456>
(sizeof nameList) Returns: 648

 

Related Examples

Here are examples of the sizeof function at work.

BitVector sizeof 019 Boolean sizeof 009 Brick sizeof 029 ByteVector sizeof 020
Character sizeof 010 Date sizeof 012 Dictionary sizeof 004 Directory sizeof 005
FltVector sizeof 014 Function sizeof 013 IntVector sizeof 015 List sizeof 022
Matrix sizeof 007 NumMatrix sizeof 028 NumVector sizeof 016 Number sizeof 011
ObjVector sizeof 017 Pair sizeof 021 PcodeVector sizeof 018 ShortVector sizeof 016
String sizeof 001 Structure sizeof 003 Symbol sizeof 002 Vector sizeof 006
Void sizeof 008

 

Function Links

Here is the link to the current function used in this example.

sizeof

Here are a number of links to other related functions.

new(#void) length(#void)

 

Argument Types

Here are the links to the data types of the arguments used in this example.

Brick

Here are a number of links to examples having similar argument types.

Brick addMethod 008 Brick cdr 010 Brick compare 019 Brick compareEQ 019
Brick compareGT 019 Brick compareLE 019 Brick compareLT 019 Brick compareNE 019
Brick comparison 019 Brick copy 012 Brick defmethod 025 Brick isAtom 011
Brick isEqual 018 Brick isIdentical 020 Brick isObject 014 Brick isType 022
Brick length 017 Brick methodsOf 024 Brick new 015 Brick ref 036
Brick send 027 Brick setCdr 014 Brick setq 029 Brick setq 28
Brick sizeof 029 Brick type 026

Analytic Information Server (AIS)

AIS Component Systems

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