|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.cardon.nativecall.NativeObject
be.cardon.nativecall.NativeUnicodeString
public class NativeUnicodeString
NULL
terminated Unicode string (UTF-16LE) native object.
Field Summary |
---|
Fields inherited from class be.cardon.nativecall.NativeObject |
---|
BYTE_SIZE, INT_SIZE, LLC |
Method Summary | |
---|---|
static NativeUnicodeString |
newInstance(java.lang.String str)
Copy a given string to new allocated NULL terminated Unicode
(2 bytes/char)string wchar[] . |
Methods inherited from class be.cardon.nativecall.NativeObject |
---|
finalize, getAddress, getLength, isReadOnly, setReadOnly |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static NativeUnicodeString newInstance(java.lang.String str) throws NativeCallException
NULL
terminated Unicode
(2 bytes/char)string wchar[]
.
The given string is converted to UTF-16 little endian sinds
x386 processor works natively in little endian (Java works in big endian on
any platform). The native string is terminated with 1 NULL character (= 2 bytes
NULL
).
str
- String to be copied.
NativeObject
.
NativeCallException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |