Logo Search packages:      
Sourcecode: libjna-java version File versions  Download package

String com::sun::jna::Pointer::getString ( long  offset,
boolean  wide 
) [inline]

Copy native memory to a Java String. If wide is true, access the memory as an array of wchar_t, otherwise as an array of char, using the default platform encoding.

Parameters:
offset byte offset from pointer to obtain the native string v *
wide whether to convert from a wide or standard C string
Returns:
the String value being pointed to

Reimplemented in com::sun::jna::Memory, and com::sun::jna::Pointer::Opaque.

Definition at line 530 of file Pointer.java.

References peer.

Referenced by getString(), com::sun::jna::Function::invokeString(), and com::sun::jna::StringArray::read().

                                                       {
        return _getString(peer + offset, wide);
    }


Generated by  Doxygen 1.6.0   Back to index