|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jocl.struct.SizeofStruct
public class SizeofStruct
A class that offers a functionality similar to the 'Sizeof' class of JOCL for the experimental 'struct' support.
| Constructor Summary | |
|---|---|
SizeofStruct()
|
|
| Method Summary | |
|---|---|
static int |
sizeof(java.lang.Class<?> c)
Returns the size of the given type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SizeofStruct()
| Method Detail |
|---|
public static int sizeof(java.lang.Class<?> c)
Struct class, then
the size of the whole structure, including padding that
is required for the alignment in OpenCL, is computed
and returned.
c - The class
java.lang.IllegalArgumentException - If the given class is
neither a type from CLTypes, nor a cl_* type, nor a Struct.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||