Package com.sun.jna.platform.win32
Class WTypes.BSTRByReference
- java.lang.Object
- 
- com.sun.jna.PointerType
- 
- com.sun.jna.ptr.ByReference
- 
- com.sun.jna.platform.win32.WTypes.BSTRByReference
 
 
 
- 
- All Implemented Interfaces:
- NativeMapped
 - Enclosing interface:
- WTypes
 
 public static class WTypes.BSTRByReference extends ByReference 
- 
- 
Constructor SummaryConstructors Constructor Description BSTRByReference()BSTRByReference(WTypes.BSTR value)Store a reference to the specifiedWTypes.BSTR.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetString()Returns the String represented by the referencedWTypes.BSTR.WTypes.BSTRgetValue()Returns a copy of theWTypes.BSTRreferenced by this object.voidsetValue(WTypes.BSTR value)Store a reference to the specifiedWTypes.BSTR.- 
Methods inherited from class com.sun.jna.ptr.ByReferencetoString
 - 
Methods inherited from class com.sun.jna.PointerTypeequals, fromNative, getPointer, hashCode, nativeType, setPointer, toNative
 
- 
 
- 
- 
- 
Constructor Detail- 
BSTRByReferencepublic BSTRByReference() 
 - 
BSTRByReferencepublic BSTRByReference(WTypes.BSTR value) Store a reference to the specifiedWTypes.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 thisWTypes.BSTR.- Parameters:
- value- The BSTR to be referenced. Only the pointer is stored as a reference.
 
 
- 
 - 
Method Detail- 
setValuepublic void setValue(WTypes.BSTR value) Store a reference to the specifiedWTypes.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 thisWTypes.BSTR.- Parameters:
- value- The BSTR to be referenced. Only the pointer is stored as a reference.
 
 - 
getValuepublic WTypes.BSTR getValue() Returns a copy of theWTypes.BSTRreferenced by this object. The memory associated with theWTypes.BSTRmay be referenced by other objects/threads which may also free the underlying native memory.- Returns:
- A new WTypes.BSTRobject corresponding to the memory referenced by this object.
 
 - 
getStringpublic java.lang.String getString() Returns the String represented by the referencedWTypes.BSTR.- Returns:
- the referenced String, if the reference is not null,nullotherwise.
 
 
- 
 
-