Class NativeStruct

    • Constructor Detail

      • NativeStruct

        public NativeStruct()
    • Method Detail

      • getByteCount

        public int getByteCount()
        Description copied from class: NativeObject
        The number of bytes occupied by this.
        Specified by:
        getByteCount in class NativeObject
        Returns:
        The number of bytes occupied by this.
      • getNativeObject

        public INativeObject getNativeObject​(java.lang.String name)
        The NativeObject at the named slot name.

        The marshalling is delegated to the StructMember in the StructDeclaration.

        Parameters:
        name - The name of the slot in the structure.
        Returns:
        The NativeObject at the named slot name.
      • getStructField

        protected StructMember getStructField​(java.lang.String name)
      • getValue

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

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

        public java.lang.String toNestedString()
        Description copied from class: NativeObject
        A string for debugging purposes.
        Overrides:
        toNestedString in class NativeObject
        Returns:
        A string for debugging purposes.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object