Structural Informatics Group (SIG) logo
Home | Projects | Demos | Downloads | Publications | Local Info | About Us | New site
Go to the first, previous, next, last section, table of contents.

Integer-access Msgs

type: message
source files: xgbj.[ch]

SYNTAX

(SEND <gobj> :INTEGER-ADJUST-ARRAY <fix:newsize>)  ; 0 <= nex
(SEND <gobj> :INTEGER-AREF <fix:index>)            ; 0 <= Index < size
(SEND <gobj> :INTEGER-ARRAY-DIMENSION)
(SEND <gobj> :INTEGER-SETF <fix:index> <fix:val>)

DESCRIPTION

Fetch or store integers from binary segment; Get or set size-in-ints of binary segment. Valid indices are always 0 to INTEGER-ARRAY-DIMENSION -1.

EXAMPLES

(setq g (send class-gobject :new))   ; Create a gobject instance.
(send g :integer-adjust-array 2))    ; Expand binary segment to two ints.
(send g :integer-setf  0 5))         ; Set first int in segment to 5.
(send g :integer-aref  0))           ; Read back first int.

Go to the first, previous, next, last section, table of contents.