24 if constexpr (
sizeof(
void *) == 8) {
25 return reinterpret_cast<const void *
>(ptr);
36 bhead.
len = small_bhead8.
len;
39 bhead.
nr = small_bhead8.
nr;
47 bhead.
len = large_bhead8.
len;
50 bhead.
nr = large_bhead8.
nr;
63 const int64_t readsize = file->
read(file, &bhead4,
sizeof(bhead4));
72 const int64_t readsize = file->
read(file, &small_bhead8,
sizeof(small_bhead8));
81 const int64_t readsize = file->
read(file, &large_bhead8,
sizeof(large_bhead8));
Wrapper for reading from various sources (e.g. raw files, compressed files, memory....
unsigned __int64 uint64_t
static const void * old_ptr_from_uint64_ptr(const uint64_t ptr)
std::optional< BHead > BLO_readfile_read_bhead(FileReader *file, BHeadType type)
static BHead bhead_from_small_bhead8(const SmallBHead8 &small_bhead8)
uint32_t uint32_from_uint64_ptr(uint64_t ptr)
static BHead bhead_from_bhead4(const BHead4 &bhead4)
_W64 unsigned int uintptr_t
static BHead bhead_from_large_bhead8(const LargeBHead8 &large_bhead8)