CPointer



CPointer inherits from Object and defines no instance variables. It has no subclasses.

CPointer is a "boxed" 32-bit pointer. Pointers are used extensively in PalmOS as arguments to or return values from SYSTRAP calls. C structures and heap-allocated strings can also be accessed through CPointers.

Class-side methods give ways to allocate dynamic memory from PalmOS. You must be careful to free such memory when you are finished, as Pocket Smalltalk does NOT automatically free such memory!

If you need a small buffer of aligned heap memory you can use the global variable PadBuffer. This is a CPointer to a 100-byte region of dynamic memory allocated on startup.

Methods defined in CPointer:

Methods for accessing:

Methods for comparing:

Methods for converting:

Methods for memory management:

Methods for predicates:

Methods for printing:


Pocket Smalltalk Documentation