Package org.blender.dna
Class PackedFile
- java.lang.Object
-
- org.cakelab.blender.nio.CFacade
-
- org.blender.dna.PackedFile
-
public class PackedFile extends CFacade
Generated facet for DNA struct type 'PackedFile'.Class Documentation
-
-
Field Summary
Fields Modifier and Type Field Description static long[]
__DNA__FIELD__data
Field descriptor (offset) for struct member 'data'.static long[]
__DNA__FIELD__seek
Field descriptor (offset) for struct member 'seek'.static long[]
__DNA__FIELD__size
Field descriptor (offset) for struct member 'size'.static int
__DNA__SDNA_INDEX
This is the sdna index of the struct PackedFile.-
Fields inherited from class org.cakelab.blender.nio.CFacade
__io__address, __io__arch_index, __io__block, __io__blockTable, __io__pointersize
-
-
Constructor Summary
Constructors Modifier Constructor Description PackedFile(long __address, Block __block, BlockTable __blockTable)
protected
PackedFile(PackedFile that)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CPointer<PackedFile>
__io__addressof()
Instantiates a pointer on this instance.CPointer<java.lang.Object>
getData()
Get method for struct member 'data'.int
getSeek()
Get method for struct member 'seek'.int
getSize()
Get method for struct member 'size'.void
setData(CPointer<java.lang.Object> data)
Set method for struct member 'data'.void
setSeek(int seek)
Set method for struct member 'seek'.void
setSize(int size)
Set method for struct member 'size'.-
Methods inherited from class org.cakelab.blender.nio.CFacade
__io__addressof, __io__addressof, __io__equals, __io__generic__copy, __io__generic__copy, __io__instanceof, __io__native__copy, __io__newInstance, __io__same__encoding, __io__sizeof, __io__sizeof, __io__subclassof, equals, hashCode
-
-
-
-
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 bytesPointer 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.
-
-