com.jniwrapper
Class WideChar

java.lang.Object
  |
  +--com.jniwrapper.Parameter
        |
        +--com.jniwrapper.WideChar

public class WideChar
extends Parameter

Represents unicode character (wchar_t)


Constructor Summary
WideChar()
          Constructs a new wchar_t parameter.
WideChar(char c)
          Constructs a new wchar_t parameter.
WideChar(WideChar t)
          Constructs a new wchar_t parameter.
 
Method Summary
 java.lang.Object clone()
           
 int getLength()
          Returns a length of the parameter in memory.
 char getValue()
          Returns value of this parameters as Unicode character.
 void read(DataBuffer stackBuffer, int offset)
          Reads this parameter from a specified data source.
 void setValue(char value)
          Sets this parameter to the given Unicode character value.
 void write(DataBuffer stackBuffer, int offset)
          Writes this parameter to a specified data source.
 
Methods inherited from class com.jniwrapper.Parameter
acceptIOPerformer, asReturnValue, equals, getAlignedLength, getBuffer, getOffset, indent, pop, push, read, setBuffer, toByteArray, write
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WideChar

public WideChar()
Constructs a new wchar_t parameter.


WideChar

public WideChar(char c)
Constructs a new wchar_t parameter.

Parameters:
c - initial value.

WideChar

public WideChar(WideChar t)
Constructs a new wchar_t parameter.

Parameters:
t - parameter to get initial value from.
Method Detail

getLength

public int getLength()
Description copied from class: Parameter
Returns a length of the parameter in memory. This method is analogous to C sizeof() operator.

Specified by:
getLength in class Parameter

clone

public java.lang.Object clone()
Specified by:
clone in class Parameter

getValue

public char getValue()
Returns value of this parameters as Unicode character.


setValue

public void setValue(char value)
Sets this parameter to the given Unicode character value.


write

public void write(DataBuffer stackBuffer,
                  int offset)
           throws MemoryAccessViolationException
Description copied from class: Parameter
Writes this parameter to a specified data source.

Specified by:
write in class Parameter
MemoryAccessViolationException

read

public void read(DataBuffer stackBuffer,
                 int offset)
          throws MemoryAccessViolationException
Description copied from class: Parameter
Reads this parameter from a specified data source.

Specified by:
read in class Parameter
MemoryAccessViolationException