public static class WTypes.BSTR extends PointerType
From MSDN:
A BSTR (Basic string or binary string) is a string data type that is used by COM, Automation, and Interop functions. Use the BSTR data type in all interfaces that will be accessed from script.
The memory structure:
The "value" of the BSTR is the pointer to the start of the Data String, the length prefix is the four bytes before that.
The MSDN states, that a BSTR derived from a Nullpointer is treated as a string containing zero characters.
| Constructor and Description |
|---|
BSTR() |
BSTR(Pointer pointer)
Instantiate a BSTR from a pointer.
|
BSTR(java.lang.String value)
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getValue() |
void |
setValue(java.lang.String value)
Deprecated.
Users should not change the value of an allocated
WTypes.BSTR. |
java.lang.String |
toString() |
equals, fromNative, getPointer, hashCode, nativeType, setPointer, toNativepublic BSTR()
public BSTR(Pointer pointer)
WTypes.BSTR, most commonly using
OleAuto.SysAllocString(String) and
OleAuto.SysFreeString(com.sun.jna.platform.win32.WTypes.BSTR)pointer - A pointer to the string@Deprecated public BSTR(java.lang.String value)
@Deprecated public void setValue(java.lang.String value)
WTypes.BSTR.public java.lang.String getValue()
public java.lang.String toString()
toString in class PointerType