Package de.intarsys.nativec.type
Class NativeSimple
- java.lang.Object
-
- de.intarsys.nativec.type.NativeObject
-
- de.intarsys.nativec.type.NativeSimple
-
- All Implemented Interfaces:
INativeObject
- Direct Known Subclasses:
NativeNumber
,NativeVoid
public abstract class NativeSimple extends NativeObject
An abstract superclass for the implementation of primitiveNativeObject
instances. TheseNativeObject
instances are not constructed from otherNativeObject
instances but implemented directly in Java, having a fixed size.
-
-
Field Summary
-
Fields inherited from class de.intarsys.nativec.type.NativeObject
DEBUG, handle, SHIFT_INT, SHIFT_LONG, SHIFT_LONGLONG, SIZE_BYTE, SIZE_INT, SIZE_LONG, SIZE_LONGLONG, SIZE_PTR, SIZE_SHORT
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
NativeSimple()
Create a wrapper for a NativePrimitiveprotected
NativeSimple(INativeHandle handle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getByteCount()
The number of bytes occupied by this.-
Methods inherited from class de.intarsys.nativec.type.NativeObject
allocate, cast, createReference, getByte, getByteArray, getBytes, getCLong, getInt, getNativeHandle, getNativeHandle, getNativeType, getShort, getString, getWideString, isNull, setByte, setByteArray, setCLong, setInt, setNativeHandle, setShort, setString, setWideString, toNestedString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.intarsys.nativec.type.INativeObject
getValue, setValue
-
-
-
-
Constructor Detail
-
NativeSimple
protected NativeSimple()
Create a wrapper for a NativePrimitive
-
NativeSimple
protected NativeSimple(INativeHandle handle)
-
-
Method Detail
-
getByteCount
public int getByteCount()
Description copied from class:NativeObject
The number of bytes occupied by this.- Specified by:
getByteCount
in classNativeObject
- Returns:
- The number of bytes occupied by this.
-
-