Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/BLI_fileops.h
| Show First 20 Lines • Show All 175 Lines • ▼ Show 20 Lines | |||||
| void *BLI_file_read_text_as_mem(const char *filepath, size_t pad_bytes, size_t *r_size); | void *BLI_file_read_text_as_mem(const char *filepath, size_t pad_bytes, size_t *r_size); | ||||
| void *BLI_file_read_text_as_mem_with_newline_as_nil(const char *filepath, | void *BLI_file_read_text_as_mem_with_newline_as_nil(const char *filepath, | ||||
| bool trim_trailing_space, | bool trim_trailing_space, | ||||
| size_t pad_bytes, | size_t pad_bytes, | ||||
| size_t *r_size); | size_t *r_size); | ||||
| void *BLI_file_read_binary_as_mem(const char *filepath, size_t pad_bytes, size_t *r_size); | void *BLI_file_read_binary_as_mem(const char *filepath, size_t pad_bytes, size_t *r_size); | ||||
| void BLI_file_free_lines(struct LinkNode *lines); | void BLI_file_free_lines(struct LinkNode *lines); | ||||
| #ifdef __APPLE__ | |||||
| const char *BLI_expand_tilde(const char *path_with_tilde); | |||||
| #endif | |||||
| /* this weirdo pops up in two places ... */ | /* this weirdo pops up in two places ... */ | ||||
| #if !defined(WIN32) | #if !defined(WIN32) | ||||
| # ifndef O_BINARY | # ifndef O_BINARY | ||||
| # define O_BINARY 0 | # define O_BINARY 0 | ||||
| # endif | # endif | ||||
| #else | #else | ||||
| void BLI_get_short_name(char short_name[256], const char *filename); | void BLI_get_short_name(char short_name[256], const char *filename); | ||||
| #endif | #endif | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||