79 SQFS_FILE_OPEN_ALL_FLAGS = 0x07,
110 void *buffer,
size_t size);
125 const void *buffer,
size_t size);
SQFS_FILE_OPEN_FLAGS
Flags for sqfs_open_file.
@ SQFS_FILE_OPEN_READ_ONLY
If set, access the file for reading only.
@ SQFS_FILE_OPEN_NO_CHARSET_XFRM
If set, do not try to apply any character set transformations to the file path.
@ SQFS_FILE_OPEN_OVERWRITE
If the read only flag is not set, overwrite any existing file.
SQFS_API sqfs_file_t * sqfs_open_file(const char *filename, sqfs_u32 flags)
Open a file through the operating systems filesystem API.
Includes forward declarations of data structures, macros and integer types.
Abstracts file I/O to make it easy to embedd SquashFS.
int(* truncate)(sqfs_file_t *file, sqfs_u64 size)
Extend or shrink a file to a specified size.
sqfs_u64(* get_size)(const sqfs_file_t *file)
Get the number of bytes currently stored in the file.
int(* read_at)(sqfs_file_t *file, sqfs_u64 offset, void *buffer, size_t size)
Read a chunk of data from an absolute position.
int(* write_at)(sqfs_file_t *file, sqfs_u64 offset, const void *buffer, size_t size)
Write a chunk of data at an absolute position.
Base interface for all libsquashfs in-memory data structures.