Package smetana.core
Class size_t
- java.lang.Object
-
- smetana.core.size_t
-
public class size_t extends java.lang.Object
"Pseudo size" of a C structure. In C, this is the actual size of the structure. In Java, this is an indication to know which structure we are going to allocate.- Author:
- Arnaud Roques
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Class
tobeAllocated
-
Constructor Summary
Constructors Constructor Description size_t(java.lang.Class tobeAllocated)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getInternalNb()
java.lang.Class
getTobeAllocated()
boolean
isStrictNegative()
boolean
isStrictPositive()
boolean
isZero()
__ptr__
malloc()
size_t
multiply(int sz)
size_t
negate()
size_t
plus(int strlen)
__ptr__
realloc(java.lang.Object old)
java.lang.String
toString()
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
negate
public size_t negate()
-
multiply
public size_t multiply(int sz)
-
isStrictPositive
public boolean isStrictPositive()
-
isStrictNegative
public boolean isStrictNegative()
-
getTobeAllocated
public final java.lang.Class getTobeAllocated()
-
malloc
public __ptr__ malloc()
-
plus
public size_t plus(int strlen)
-
isZero
public boolean isZero()
-
realloc
public __ptr__ realloc(java.lang.Object old)
-
getInternalNb
public int getInternalNb()
-
-