com.smardec.j2native
Class OutOnly

java.lang.Object
  |
  +--com.smardec.j2native.Argument
        |
        +--com.smardec.j2native.DelegatedArgument
              |
              +--com.smardec.j2native.OutOnly
All Implemented Interfaces:
java.lang.Cloneable

public class OutOnly
extends DelegatedArgument

OutOnly class represents an argument that is only written by a native function. In documentation, such parameters are usually identified as [out]. Initial content of the corresponding memory area during the function call is undefined.


Field Summary
 
Fields inherited from class com.smardec.j2native.Argument
JAVA_SIDE, NATIVE_SIDE
 
Constructor Summary
OutOnly(Argument refArgument)
          Constructs the OutOnly object by wrapping a specified Argument object.
 
Method Summary
 java.lang.Object clone()
          Creates and returns a copy of this object.
protected  void write(long handle, int offset)
          do nothing
protected  void writeToStack(byte[] stack, int offset)
          do nothing
 
Methods inherited from class com.smardec.j2native.DelegatedArgument
finalize, free, fromBytesValue, getAlignedLength, getInternalValue, getLength, isFixedLength, read, readFromRAM, readFromStack, restoreFromRAM, setInternalValue, storeToRAM, toBytesValue, toBytesValue, writeToRAM
 
Methods inherited from class com.smardec.j2native.Argument
getResultFlags, update
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutOnly

public OutOnly(Argument refArgument)
Constructs the OutOnly object by wrapping a specified Argument object.

Parameters:
refArgument - argument to wrap
Method Detail

clone

public java.lang.Object clone()
Description copied from class: Argument
Creates and returns a copy of this object.

Specified by:
clone in class Argument
Returns:
a clone of this instance.

write

protected void write(long handle,
                     int offset)
do nothing

Overrides:
write in class DelegatedArgument
Parameters:
handle - identifies location in memory where Argument will be written
offset - memory address offset

writeToStack

protected void writeToStack(byte[] stack,
                            int offset)
do nothing

Overrides:
writeToStack in class DelegatedArgument
Parameters:
stack - it's byte array, where Argument will be written
offset - offset in stack


Copyright © 2004-2005 Smardec. All Rights Reserved.