Class NativeByte

All Implemented Interfaces:
INativeObject

public class NativeByte extends NativeNumber
A wrapper for a primitive byte.
  • Field Details

    • META

      public static final NativeByteType META
      The meta class instance
  • Constructor Details

    • NativeByte

      public NativeByte()
      Create a new wrapper
    • NativeByte

      public NativeByte(byte value)
      Create a new wrapper
    • NativeByte

      protected NativeByte(INativeHandle handle)
  • Method Details

    • createFromAddress

      public static NativeByte createFromAddress(long address)
    • byteValue

      public byte byteValue()
      Description copied from class: NativeNumber
      This as a java primitive byte value.
      Specified by:
      byteValue in class NativeNumber
      Returns:
      This as a java primitive byte value.
    • getNativeType

      public INativeType getNativeType()
      Description copied from class: NativeObject
      The meta information and behavior for the NativeObject.

      There is exactly one meta instance for all NativeObject instances of a certain type.

      Specified by:
      getNativeType in interface INativeObject
      Specified by:
      getNativeType in class NativeObject
      Returns:
      The meta information and behavior for the NativeObject.
    • getValue

      public Object getValue()
      Description copied from interface: INativeObject
      A Java side representation from the memory.
      Returns:
      A Java side representation for the INativeObject.
    • intValue

      public int intValue()
      Description copied from class: NativeNumber
      This as a java primitive int value.
      Specified by:
      intValue in class NativeNumber
      Returns:
      This as a java primitive int value.
    • longValue

      public long longValue()
      Description copied from class: NativeNumber
      This as a java primitive long value.
      Specified by:
      longValue in class NativeNumber
      Returns:
      This as a java primitive long value.
    • setValue

      public void setValue(byte value)
    • setValue

      public void setValue(Object value)
      Description copied from interface: INativeObject
      Assign (and marshall to memory) the Java side representation.
      Parameters:
      value - The new Java value.
    • shortValue

      public short shortValue()
      Description copied from class: NativeNumber
      This as a java primitive short value.
      Specified by:
      shortValue in class NativeNumber
      Returns:
      This as a java primitive short value.
    • toString

      public String toString()
      Overrides:
      toString in class Object