Class Struct

    • Method Detail

      • sizeof

        public abstract int sizeof()
        Returns sizeof(struct).
      • clear

        public void clear()
        Zeroes-out the struct data.
      • free

        public void free()
        Frees the struct allocation.

        This method should not be used if the memory backing this struct is not owned by the struct.

      • isNull

        public boolean isNull​(int memberOffset)
        Returns true if the pointer member that corresponds to the specified memberOffset is NULL.

        This is useful to verify that not nullable members of an untrusted struct instance are indeed not NULL.

        memberOffset - the byte offset of the member to query
        true if the member is NULL