Class PackedFile


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

    Class Documentation

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Field Documentation

        Blender Python API

        (read-only) Size of packed file in bytes

        Pointer Arithmetics

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

         PackedFile packedfile = ...;
         CPointer<Object> p = packedfile.__dna__addressof(PackedFile.__DNA__FIELD__size);
         CPointer<Integer> p_size = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'size'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__seek

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

        Pointer Arithmetics

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

         PackedFile packedfile = ...;
         CPointer<Object> p = packedfile.__dna__addressof(PackedFile.__DNA__FIELD__seek);
         CPointer<Integer> p_seek = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'seek'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__data

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

        Field Documentation

        Blender Python API

        (read-only) Raw data (bytes, exact content of the embedded file)

        Pointer Arithmetics

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

         PackedFile packedfile = ...;
         CPointer<Object> p = packedfile.__dna__addressof(PackedFile.__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

      • PackedFile

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

        protected PackedFile​(PackedFile that)
    • Method Detail

      • getSize

        public int getSize()
                    throws java.io.IOException
        Get method for struct member 'size'.

        Field Documentation

        Blender Python API

        (read-only) Size of packed file in bytes
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__size
      • setSize

        public void setSize​(int size)
                     throws java.io.IOException
        Set method for struct member 'size'.

        Field Documentation

        Blender Python API

        (read-only) Size of packed file in bytes
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__size
      • getSeek

        public int getSeek()
                    throws java.io.IOException
        Get method for struct member 'seek'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__seek
      • setSeek

        public void setSeek​(int seek)
                     throws java.io.IOException
        Set method for struct member 'seek'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__seek
      • getData

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

        Field Documentation

        Blender Python API

        (read-only) Raw data (bytes, exact content of the embedded file)
        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

        Blender Python API

        (read-only) Raw data (bytes, exact content of the embedded file)
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__data
      • __io__addressof

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