Back: CArray-accessing
Up: Class reference
Forward: CArrayCType class-instance creation
 
Top: GNU Smalltalk User's Guide
Contents: Table of Contents
Index: Class index
About: About this document

6.17 CArrayCType

Defined in namespace Smalltalk
Category: Language-C interface

6.17.1 CArrayCType class: instance creation  (class)
6.17.2 CArrayCType: accessing  (instance)


6.17.1 CArrayCType class: instance creation

elementType: aCType
This method should not be called for instances of this class.

elementType: aCType numberOfElements: anInteger
Answer a new instance of CPtrCType that maps an array whose elements are of the given CType, and whose size is exactly anInteger elements (of course, anInteger only matters for allocation, not for access, since no out-of-bounds protection is provided for C objects).


6.17.2 CArrayCType: accessing

alignof
Answer the alignment of the receiver's instances

numberOfElements
Answer the number of elements in the receiver's instances

sizeof
Answer the size of the receiver's instances




This document was generated on May, 12 2002 using texi2html