public static class WTypes.BSTRByReference extends ByReference
| Constructor and Description |
|---|
BSTRByReference() |
BSTRByReference(WTypes.BSTR value)
Store a reference to the specified
WTypes.BSTR. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getString()
Returns the String represented by the referenced
WTypes.BSTR. |
WTypes.BSTR |
getValue()
Returns a copy of the
WTypes.BSTR referenced by this object. |
void |
setValue(WTypes.BSTR value)
Store a reference to the specified
WTypes.BSTR. |
toStringequals, fromNative, getPointer, hashCode, nativeType, setPointer, toNativepublic BSTRByReference()
public BSTRByReference(WTypes.BSTR value)
WTypes.BSTR. This method does not
maintain a reference to the object passed as an argument. The user is
responsible for allocating and freeing the memory associated with this
WTypes.BSTR.value - The BSTR to be referenced. Only the pointer is stored as a
reference.public void setValue(WTypes.BSTR value)
WTypes.BSTR. This method does not
maintain a reference to the object passed as an argument. The user is
responsible for allocating and freeing the memory associated with this
WTypes.BSTR.value - The BSTR to be referenced. Only the pointer is stored as a
reference.public WTypes.BSTR getValue()
WTypes.BSTR referenced by this object. The memory
associated with the WTypes.BSTR may be referenced by other objects/threads
which may also free the underlying native memory.WTypes.BSTR object corresponding to the memory referenced by
this object.public java.lang.String getString()
WTypes.BSTR.null,
null otherwise.