|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.jniwrapper.Parameter
|
+--com.jniwrapper.DelegatingParameter
|
+--com.jniwrapper.OutOnly
Represents parameter that is only written by a native function. Documentation usually specify such parameters as [out]. Initial contents of the corresponding memory area during function call are undefined.
| Constructor Summary | |
OutOnly(OutOnly t)
|
|
OutOnly(Parameter param)
|
|
| Method Summary | |
protected void |
acceptIOPerformer(IOPerformer performer,
DataBuffer source,
int initialOffset)
Realization of a Visitor pattern for parameter IO. |
java.lang.Object |
clone()
|
protected DataBuffer |
getBuffer()
Returns current data storage. |
int |
getLength()
Returns a length of the parameter in memory. |
protected int |
getOffset()
Returns current offset within data storage. |
void |
pop(DataBuffer stackBuffer,
int offset)
Default implementation, which does nothing as most primitive types do nothing on pop. |
void |
read(DataBuffer stackBuffer,
int offset)
Reads this parameter from a specified data source. |
protected void |
setBuffer(DataBuffer newSource,
int newOffset)
Sets the data buffer this parameter should use to store data and an offset in bytes within that buffer. |
java.lang.String |
toString()
|
void |
write(DataBuffer stackBuffer,
int offset)
Writes this parameter to a specified data source. |
| Methods inherited from class com.jniwrapper.Parameter |
asReturnValue, equals, getAlignedLength, indent, push, read, toByteArray, write |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public OutOnly(Parameter param)
public OutOnly(OutOnly t)
| Method Detail |
public void write(DataBuffer stackBuffer,
int offset)
throws MemoryAccessViolationException
Parameter
write in class com.jniwrapper.DelegatingParameterMemoryAccessViolationException
public void pop(DataBuffer stackBuffer,
int offset)
throws MemoryAccessViolationException
Parameter
pop in class ParameterMemoryAccessViolationExceptionpublic java.lang.Object clone()
clone in class Parameterpublic java.lang.String toString()
toString in class java.lang.Object
protected void acceptIOPerformer(IOPerformer performer,
DataBuffer source,
int initialOffset)
Parameterperformer is responsible for I/Oing the
parameter. Users implementing a complex parameter from scratch (i.e. not by extending a pre-existing class
such as Structure or Pointer) may wish to override this method to make a performer
visit object internal parts.
acceptIOPerformer in class Parameterperformer - visitor responsible for I/Oing the parametersource - data buffer for I/O operationinitialOffset - I/O operation offset of this parameter in the buffer
protected void setBuffer(DataBuffer newSource,
int newOffset)
Parameter
setBuffer in class Parameterprotected DataBuffer getBuffer()
Parameter
getBuffer in class Parameterprotected int getOffset()
Parameter
getOffset in class Parameterpublic int getLength()
Parametersizeof() operator.
getLength in class Parameter
public void read(DataBuffer stackBuffer,
int offset)
throws MemoryAccessViolationException
Parameter
read in class ParameterMemoryAccessViolationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||