com.sun.jna.ptr
Class ByReference
java.lang.Object
com.sun.jna.PointerType
com.sun.jna.ptr.ByReference
- All Implemented Interfaces:
- NativeMapped
- Direct Known Subclasses:
- BaseTSD.ULONG_PTRByReference, ByteByReference, DoubleByReference, FloatByReference, IntByReference, LongByReference, NativeLongByReference, OaIdl.DISPIDByReference, OaIdl.MEMBERIDByReference, OaIdl.VARIANT_BOOLByReference, PointerByReference, ShortByReference, WinDef.BOOLByReference, WinDef.CHARByReference, WinDef.DWORDByReference, WinDef.LONGByReference, WinDef.LONGLONGByReference, WinDef.SCODEByReference, WinDef.UINTByReference, WinDef.ULONGByReference, WinDef.ULONGLONGByReference, WinDef.USHORTByReference, WinDef.WORDByReference, WinNT.HANDLEByReference, WinNT.PSIDByReference, WinReg.HKEYByReference, WTypes.BSTRByReference, X11.AtomByReference, X11.WindowByReference
public abstract class ByReference
- extends PointerType
Provides generic "pointer to type" functionality, often used in C
code to return values to the caller in addition to a function result.
Derived classes should define setValue(<T>)
and <T> getValue()
methods which write to/read from
memory.
This class derives from PointerType instead of Memory in order to
restrict the API to only getValue/setValue
.
NOTE: this class would ideally be replaced by a generic.
Constructor Summary |
protected |
ByReference(int dataSize)
|
ByReference
protected ByReference(int dataSize)
Copyright © 2007-2013 Timothy Wall. All Rights Reserved.