27 if (fread(&
data,
sizeof(
T), 1, file) != 1) {
35 if constexpr (std::endian::native != std::endian::little) {
55 if (fseek(file, 0, SEEK_SET) == -1) {
66 else if ((magic & 0xffff) == 0x8b1f) {
File and directory operations.
#define CLOG_DEBUG(clg_ref,...)
constexpr const char * c_str() const
PointCloud * read_spz_file(const StringRefNull filepath, ReportList *reports)
static bool read_spz_scalar(FILE *file, T &data)
PointCloud * read_spz_gzip_compressed_file(FILE *file, ReportList *reports)
constexpr uint32_t SPZ_HEADER_MAGIC
PointCloud * read_spz_ngsp_file(FILE *file, ReportList *reports)
FILE * BLI_fopen(const char *filepath, const char *mode) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
void BKE_report(ReportList *reports, eReportType type, const char *message)
BMesh const char void * data
void BKE_reportf(ReportList *reports, eReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3