c :: NativeCIntArray
int
in C (int*
)c :: NativeCIntArray :: defaultinit
c :: NativeCIntArray :: new
Initialize a new NativeCIntArray ofsize
elements.
c $ NativeCIntArray :: SELF
Type of this instance, automatically specialized in every classcore :: Pointer :: address_is_null
Is the address behind this Object at NULL?core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
c :: NativeCIntArray :: defaultinit
core :: Pointer :: defaultinit
c :: NativeCArray :: defaultinit
core :: Object :: defaultinit
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: native_class_name
The class name of the object in CString format.core :: Pointer :: native_equals
c :: NativeCIntArray :: new
Initialize a new NativeCIntArray ofsize
elements.
core :: Object :: output_class_name
Display class name on stdout (debug only).core :: Pointer :: premultiply_alpha
Multiply RGB values by their alpha valuec :: NativeCArray
A native C array, as in a pointer to the first element of the array
# An array of `int` in C (`int*`)
extern class NativeCIntArray `{ int* `}
super NativeCArray
redef type E: Int
# Initialize a new NativeCIntArray of `size` elements.
new(size: Int) `{ return calloc(size, sizeof(int)); `}
redef fun [](index) `{ return self[index]; `}
redef fun []=(index, val) `{ self[index] = val; `}
redef fun +(offset) `{ return self + offset; `}
end
lib/c/c.nit:107,1--119,3