Class LinkData


  • public class LinkData
    extends CFacade
    Generated facet for DNA struct type 'LinkData'.

    Class Documentation

    Java .Blend

    simple subclass of Link -- use this when it is not worth defining a custom one...

    Blender Source Code

    Simple subclass of Link . Use this when it is not worth defining a custom one.

    • Field Detail

      • __DNA__SDNA_INDEX

        public static final int __DNA__SDNA_INDEX
        This is the sdna index of the struct LinkData.

        It is required when allocating a new block to store data for LinkData.

        See Also:
        StructDNA, BlockTable, Constant Field Values
      • __DNA__FIELD__next

        public static final long[] __DNA__FIELD__next
        Field descriptor (offset) for struct member 'next'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         LinkData linkdata = ...;
         CPointer<Object> p = linkdata.__dna__addressof(LinkData.__DNA__FIELD__next);
         CPointer<CPointer<LinkData>> p_next = p.cast(new Class[]{CPointer.class, LinkData.class});
         

        Metadata

        • Field: 'next'
        • Signature: 'LinkData*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__prev

        public static final long[] __DNA__FIELD__prev
        Field descriptor (offset) for struct member 'prev'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         LinkData linkdata = ...;
         CPointer<Object> p = linkdata.__dna__addressof(LinkData.__DNA__FIELD__prev);
         CPointer<CPointer<LinkData>> p_prev = p.cast(new Class[]{CPointer.class, LinkData.class});
         

        Metadata

        • Field: 'prev'
        • Signature: 'LinkData*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__data

        public static final long[] __DNA__FIELD__data
        Field descriptor (offset) for struct member 'data'.

        Field Documentation

        Java .Blend

        byte stream of arbitrary data.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         LinkData linkdata = ...;
         CPointer<Object> p = linkdata.__dna__addressof(LinkData.__DNA__FIELD__data);
         CPointer<CPointer<Object>> p_data = p.cast(new Class[]{CPointer.class, Object.class});
         

        Metadata

        • Field: 'data'
        • Signature: 'void*'
        • Actual Size (32bit/64bit): 4/8
    • Constructor Detail

      • LinkData

        public LinkData​(long __address,
                        Block __block,
                        BlockTable __blockTable)
      • LinkData

        protected LinkData​(LinkData that)
    • Method Detail

      • setNext

        public void setNext​(CPointer<LinkData> next)
                     throws java.io.IOException
        Set method for struct member 'next'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__next
      • setPrev

        public void setPrev​(CPointer<LinkData> prev)
                     throws java.io.IOException
        Set method for struct member 'prev'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__prev
      • getData

        public CPointer<java.lang.Object> getData()
                                           throws java.io.IOException
        Get method for struct member 'data'.

        Field Documentation

        Java .Blend

        byte stream of arbitrary data.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__data
      • setData

        public void setData​(CPointer<java.lang.Object> data)
                     throws java.io.IOException
        Set method for struct member 'data'.

        Field Documentation

        Java .Blend

        byte stream of arbitrary data.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__data
      • __io__addressof

        public CPointer<LinkData> __io__addressof()
        Instantiates a pointer on this instance.