- java.lang.Object
-
- de.ibapl.jnhw.common.memory.AbstractNativeMemory
-
- de.ibapl.jnhw.common.memory.OpaqueMemory32
-
- de.ibapl.jnhw.common.memory.Struct32
-
- de.ibapl.jnhw.winapi.Winnt.LPWSTR
-
- All Implemented Interfaces:
Native
- Enclosing class:
- Winnt
public static class Winnt.LPWSTR extends Struct32
Wrapper for LPWSTR.A pointer to a null-terminated string of 16-bit Unicode characters. For more information, see Character Sets Used By Fonts.
The wrapper for a byte buffer. The position of the buffer is always 0! It must be reset to 0 if changed. The limit of the buffer is always amount of valid bytes in the buffer and must be set if the amount of valid bytes changed.
This type is declared in WinNT.h as follows:
typedef WCHAR *LPWSTR;
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.ibapl.jnhw.common.memory.OpaqueMemory32
OpaqueMemory32.OpaqueMemory32Producer<T extends OpaqueMemory32,P extends AbstractNativeMemory>
-
Nested classes/interfaces inherited from class de.ibapl.jnhw.common.memory.AbstractNativeMemory
AbstractNativeMemory.NativeMemoryAlignment
-
-
Field Summary
Fields Modifier and Type Field Description static intSIZE_OF_WCHAR-
Fields inherited from class de.ibapl.jnhw.common.memory.OpaqueMemory32
sizeInBytes
-
Fields inherited from class de.ibapl.jnhw.common.memory.AbstractNativeMemory
baseAddress, LOG, memoryOwner
-
-
Constructor Summary
Constructors Constructor Description LPWSTR(int elementLength, boolean clearMemory)Creates space for a Wide String (16 bit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()StringgetString()return the NULL terminated string @baseaddressvoidresetBufferEnd()static intsizeof()static StringstringValueOfNullTerminated(WinDef.LPBYTE lpData)Skip the last two 0 bytes aka the last 0 char-
Methods inherited from class de.ibapl.jnhw.common.memory.Struct32
getBaseDataType, nativeToHexString
-
Methods inherited from class de.ibapl.jnhw.common.memory.OpaqueMemory32
calcNextOffset, clear, copy, copy, equals, getByte, hashCode, memset, nativeToString, nativeToString, offsetof, printMemory, printMemory, setByte, toBytes, toString
-
Methods inherited from class de.ibapl.jnhw.common.memory.AbstractNativeMemory
ENOMEM, isSameAddress
-
-
-
-
Field Detail
-
SIZE_OF_WCHAR
public static final int SIZE_OF_WCHAR
- See Also:
- Constant Field Values
-
-
Method Detail
-
sizeof
@SizeOf public static final int sizeof()
-
stringValueOfNullTerminated
public static String stringValueOfNullTerminated(WinDef.LPBYTE lpData)
Skip the last two 0 bytes aka the last 0 char- Parameters:
lpData-- Returns:
-
getString
public String getString()
return the NULL terminated string @baseaddress- Returns:
-
clear
public void clear()
-
resetBufferEnd
public void resetBufferEnd()
-
-