|
Blender V4.5
|
Go to the source code of this file.
Functions | |
| static void | switch_endian_bh4 (BHead4 *bhead) |
| static void | switch_endian_small_bh8 (SmallBHead8 *bhead) |
| static void | switch_endian_large_bh8 (LargeBHead8 *bhead) |
| static BHead | bhead_from_bhead4 (const BHead4 &bhead4) |
| static const void * | old_ptr_from_uint64_ptr (const uint64_t ptr, const bool use_endian_swap) |
| static BHead | bhead_from_small_bhead8 (const SmallBHead8 &small_bhead8, const bool use_endian_swap) |
| static BHead | bhead_from_large_bhead8 (const LargeBHead8 &large_bhead8, const bool use_endian_swap) |
| std::optional< BHead > | BLO_readfile_read_bhead (FileReader *file, const BHeadType type, const bool do_endian_swap) |
Definition at line 51 of file blo_core_bhead.cc.
References bhead_from_bhead4(), BHead4::code, BHead::code, BHead4::len, BHead::len, BHead4::nr, BHead::nr, BHead4::old, BHead::old, BHead4::SDNAnr, and BHead::SDNAnr.
Referenced by bhead_from_bhead4(), and BLO_readfile_read_bhead().
|
static |
Definition at line 83 of file blo_core_bhead.cc.
References bhead_from_large_bhead8(), BHead::code, LargeBHead8::code, BHead::len, LargeBHead8::len, BHead::nr, LargeBHead8::nr, BHead::old, LargeBHead8::old, old_ptr_from_uint64_ptr(), BHead::SDNAnr, and LargeBHead8::SDNAnr.
Referenced by bhead_from_large_bhead8(), and BLO_readfile_read_bhead().
|
static |
Definition at line 72 of file blo_core_bhead.cc.
References bhead_from_small_bhead8(), BHead::code, SmallBHead8::code, BHead::len, SmallBHead8::len, BHead::nr, SmallBHead8::nr, BHead::old, SmallBHead8::old, old_ptr_from_uint64_ptr(), BHead::SDNAnr, and SmallBHead8::SDNAnr.
Referenced by bhead_from_small_bhead8(), and BLO_readfile_read_bhead().
| std::optional< BHead > BLO_readfile_read_bhead | ( | FileReader * | file, |
| BHeadType | type, | ||
| bool | do_endian_swap ) |
Parse the next BHead in the file, increasing the file reader to after the BHead. This automatically converts the stored BHead (one of BHeadType) to the runtime BHead type.
Definition at line 94 of file blo_core_bhead.cc.
References BHead4, bhead_from_bhead4(), bhead_from_large_bhead8(), bhead_from_small_bhead8(), BLO_CODE_DATA, BLO_CODE_ENDB, BLO_readfile_read_bhead(), BHead4::code, LargeBHead8::code, SmallBHead8::code, LargeBHead8, FileReader::read, SmallBHead8, switch_endian_bh4(), switch_endian_large_bh8(), and switch_endian_small_bh8().
Referenced by blendthumb_extract_from_file_impl(), BLO_readfile_read_bhead(), and get_bhead().
|
static |
Definition at line 62 of file blo_core_bhead.cc.
References old_ptr_from_uint64_ptr(), and uint32_from_uint64_ptr().
Referenced by bhead_from_large_bhead8(), bhead_from_small_bhead8(), and old_ptr_from_uint64_ptr().
|
static |
Definition at line 9 of file blo_core_bhead.cc.
References BLI_endian_switch_int32(), BLO_CODE_ENDB, BHead4::code, BHead4::len, BHead4::nr, BHead4::SDNAnr, and switch_endian_bh4().
Referenced by BLO_readfile_read_bhead(), and switch_endian_bh4().
|
static |
Definition at line 37 of file blo_core_bhead.cc.
References BLI_endian_switch_int32(), BLI_endian_switch_int64(), BLO_CODE_ENDB, LargeBHead8::code, LargeBHead8::len, LargeBHead8::nr, LargeBHead8::SDNAnr, and switch_endian_large_bh8().
Referenced by BLO_readfile_read_bhead(), and switch_endian_large_bh8().
|
static |
Definition at line 23 of file blo_core_bhead.cc.
References BLI_endian_switch_int32(), BLO_CODE_ENDB, SmallBHead8::code, SmallBHead8::len, SmallBHead8::nr, SmallBHead8::SDNAnr, and switch_endian_small_bh8().
Referenced by BLO_readfile_read_bhead(), and switch_endian_small_bh8().