Package smetana.core
Class CString
java.lang.Object
smetana.core.UnsupportedC
smetana.core.CString
- All Implemented Interfaces:
__ptr__
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionchar
charAt
(int i) int
comparePointer
(__ptr__ other) void
getTheField
(FieldOffset bytes) int
getUid()
static CString
gmalloc
(int nbytes) boolean
boolean
isSameThan
(CString other) int
length()
plus_
(int pointerMove) char
setCharAt
(int i, char c) void
setParent
(ST_refstr_t struct) strchr
(char c) int
int
strdup()
toString()
Methods inherited from class smetana.core.UnsupportedC
castTo, isSameThan, unsupported
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface smetana.core.__ptr__
castTo, isSameThan, unsupported
-
Constructor Details
-
CString
-
CString
public CString(int size)
-
-
Method Details
-
isSameThan
-
duplicate
-
strdup
-
gmalloc
-
getTheField
- Specified by:
getTheField
in interface__ptr__
- Overrides:
getTheField
in classUnsupportedC
-
getParent
-
setParent
-
plus_
-
comparePointer
-
toString
-
getContent
-
charAt
public char charAt(int i) -
setCharAt
public char setCharAt(int i, char c) -
length
public int length() -
strcmp
-
strcmp
-
copyFrom
-
strchr
-
isSame
-
getUid
public int getUid()
-