Class LibraryWeakReference
- java.lang.Object
-
- org.cakelab.blender.nio.CFacade
-
- org.blender.dna.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 Summary
Fields Modifier and Type Field Description static long[]
__DNA__FIELD___pad
Field descriptor (offset) for struct member '_pad'.static long[]
__DNA__FIELD__library_filepath
Field descriptor (offset) for struct member 'library_filepath'.static long[]
__DNA__FIELD__library_id_name
Field descriptor (offset) for struct member 'library_id_name'.static int
__DNA__SDNA_INDEX
This is the sdna index of the struct LibraryWeakReference.-
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 LibraryWeakReference(long __address, Block __block, BlockTable __blockTable)
protected
LibraryWeakReference(LibraryWeakReference that)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CPointer<LibraryWeakReference>
__io__addressof()
Instantiates a pointer on this instance.CArrayFacade<java.lang.Byte>
get_pad()
Get method for struct member '_pad'.CArrayFacade<java.lang.Byte>
getLibrary_filepath()
Get method for struct member 'library_filepath'.CArrayFacade<java.lang.Byte>
getLibrary_id_name()
Get method for struct member 'library_id_name'.void
set_pad(CArrayFacade<java.lang.Byte> _pad)
Set method for struct member '_pad'.void
setLibrary_filepath(CArrayFacade<java.lang.Byte> library_filepath)
Set method for struct member 'library_filepath'.void
setLibrary_id_name(CArrayFacade<java.lang.Byte> library_id_name)
Set method for struct member 'library_id_name'.-
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 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)
-
LibraryWeakReference
protected LibraryWeakReference(LibraryWeakReference that)
-
-
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
-
__io__addressof
public CPointer<LibraryWeakReference> __io__addressof()
Instantiates a pointer on this instance.
-
-