uint16_t
in Cc :: NativeCUInt16Array :: defaultinit
c :: NativeCUInt16Array :: new
Initialize a new NativeCUInt16Array ofsize
elements.
c $ NativeCUInt16Array :: 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.
core :: Pointer :: defaultinit
c :: NativeCArray :: defaultinit
core :: Object :: defaultinit
c :: NativeCUInt16Array :: 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.
c :: NativeCUInt16Array :: new
Initialize a new NativeCUInt16Array ofsize
elements.
core :: Object :: output_class_name
Display class name on stdout (debug only).c :: NativeCArray
A native C array, as in a pointer to the first element of the array
# An array of `uint16_t` in C
extern class NativeCUInt16Array `{ uint16_t* `}
super NativeCArray
redef type E: Int
# Initialize a new NativeCUInt16Array of `size` elements.
new(size: Int) `{ return calloc(size, sizeof(uint16_t)); `}
redef fun [](index) `{ return self[index]; `}
redef fun []=(index, val) `{ self[index] = val; `}
redef fun +(offset) `{ return self + offset; `}
end
lib/c/c.nit:143,1--155,3