Back: CArray-accessing Up: Base classes Forward: CArrayCType class-instance creation   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

1.18 CArrayCType

Defined in namespace Smalltalk
Superclass: CPtrCType
Category: Language-C interface

1.18.1 CArrayCType class: instance creation  (class)
1.18.2 CArrayCType: accessing  (instance)
1.18.3 CArrayCType: storing  (instance)


1.18.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).

from: type
Private - Called by CType>>from: for arrays


1.18.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


1.18.3 CArrayCType: storing

storeOn: aStream
As with super.



Back: CArrayCType-accessing Up: CArrayCType Forward: CBoolean   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on August, 19 2010 using texi2html