Class LibraryWeakReference


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

    Class Documentation

    Blender Source Code

    A weak library/ID reference for local data that has been appended, to allow re-using that local data instead of creating a new copy of it in future appends.

    NOTE: This is by design a week reference, in other words code should be totally fine and perform a regular append if it cannot find a valid matching local ID .

    NOTE: There should always be only one single ID in current Main matching a given linked reference.

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Field Documentation

        Blender Source Code

        Expected to match a Library.filepath .

        Pointer Arithmetics

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

         LibraryWeakReference libraryweakreference = ...;
         CPointer<Object> p = libraryweakreference.__dna__addressof(LibraryWeakReference.__DNA__FIELD__library_filepath);
         CPointer<CArrayFacade<Byte>> p_library_filepath = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

        • Field: 'library_filepath'
        • Signature: 'char[1024]'
        • Actual Size (32bit/64bit): 1024/1024
      • __DNA__FIELD__library_id_name

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

        Field Documentation

        Blender Source Code

        MAX_ID_NAME. May be different from the current local ID name.

        Pointer Arithmetics

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

         LibraryWeakReference libraryweakreference = ...;
         CPointer<Object> p = libraryweakreference.__dna__addressof(LibraryWeakReference.__DNA__FIELD__library_id_name);
         CPointer<CArrayFacade<Byte>> p_library_id_name = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

        • Field: 'library_id_name'
        • Signature: 'char[66]'
        • Actual Size (32bit/64bit): 66/66
      • __DNA__FIELD___pad

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

        Pointer Arithmetics

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

         LibraryWeakReference libraryweakreference = ...;
         CPointer<Object> p = libraryweakreference.__dna__addressof(LibraryWeakReference.__DNA__FIELD___pad);
         CPointer<CArrayFacade<Byte>> p__pad = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

        • Field: '_pad'
        • Signature: 'char[2]'
        • Actual Size (32bit/64bit): 2/2
    • Constructor Detail

      • LibraryWeakReference

        public LibraryWeakReference​(long __address,
                                    Block __block,
                                    BlockTable __blockTable)
    • Method Detail

      • getLibrary_filepath

        public CArrayFacade<java.lang.Byte> getLibrary_filepath()
                                                         throws java.io.IOException
        Get method for struct member 'library_filepath'.

        Field Documentation

        Blender Source Code

        Expected to match a Library.filepath .

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__library_filepath
      • setLibrary_filepath

        public void setLibrary_filepath​(CArrayFacade<java.lang.Byte> library_filepath)
                                 throws java.io.IOException
        Set method for struct member 'library_filepath'.

        Field Documentation

        Blender Source Code

        Expected to match a Library.filepath .

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__library_filepath
      • getLibrary_id_name

        public CArrayFacade<java.lang.Byte> getLibrary_id_name()
                                                        throws java.io.IOException
        Get method for struct member 'library_id_name'.

        Field Documentation

        Blender Source Code

        MAX_ID_NAME. May be different from the current local ID name.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__library_id_name
      • setLibrary_id_name

        public void setLibrary_id_name​(CArrayFacade<java.lang.Byte> library_id_name)
                                throws java.io.IOException
        Set method for struct member 'library_id_name'.

        Field Documentation

        Blender Source Code

        MAX_ID_NAME. May be different from the current local ID name.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__library_id_name
      • get_pad

        public CArrayFacade<java.lang.Byte> get_pad()
                                             throws java.io.IOException
        Get method for struct member '_pad'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad
      • set_pad

        public void set_pad​(CArrayFacade<java.lang.Byte> _pad)
                     throws java.io.IOException
        Set method for struct member '_pad'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad