Classes | Macros | Typedefs | Enumerations | Functions
rhino/demo/c/dr_libs/old/dr_fs.h File Reference
#include <stddef.h>
#include <stdint.h>
Include dependency graph for rhino/demo/c/dr_libs/old/dr_fs.h:

Go to the source code of this file.

Classes

struct  drfs_archive_callbacks
 
struct  drfs_basedirs
 
struct  drfs_basepath
 
struct  drfs_callbacklist
 
struct  drfs_context
 
struct  drfs_file_info
 
struct  drfs_iterator
 

Macros

#define DR_FALSE   0
 
#define DR_SIZED_TYPES_DEFINED
 
#define DR_TRUE   1
 
#define DRFS_CREATE_DIRS   (1 << 4)
 
#define DRFS_EXISTING   (1 << 2)
 
#define DRFS_FILE_ATTRIBUTE_DIRECTORY   0x00000001
 
#define DRFS_FILE_ATTRIBUTE_READONLY   0x00000002
 
#define DRFS_MAX_PATH   1024
 
#define DRFS_READ   (1 << 0)
 
#define DRFS_TRUNCATE   (1 << 3)
 
#define DRFS_WRITE   (1 << 1)
 

Typedefs

typedef dr_uint32 dr_bool32
 
typedef dr_uint8 dr_bool8
 
typedef int16_t dr_int16
 
typedef int32_t dr_int32
 
typedef int64_t dr_int64
 
typedef int8_t dr_int8
 
typedef uint16_t dr_uint16
 
typedef uint32_t dr_uint32
 
typedef uint64_t dr_uint64
 
typedef uint8_t dr_uint8
 
typedef struct drfs_archive drfs_archive
 
typedef drfs_handle(* drfs_begin_iteration_proc) (drfs_handle archive, const char *relativePath)
 
typedef void(* drfs_close_archive_proc) (drfs_handle archive)
 
typedef void(* drfs_close_file_proc) (drfs_handle archive, drfs_handle file)
 
typedef struct drfs_context drfs_context
 
typedef drfs_result(* drfs_copy_file_proc) (drfs_handle archive, const char *relativePathSrc, const char *relativePathDst, dr_bool32 failIfExists)
 
typedef drfs_result(* drfs_create_directory_proc) (drfs_handle archive, const char *relativePath)
 
typedef drfs_result(* drfs_delete_file_proc) (drfs_handle archive, const char *relativePath)
 
typedef void(* drfs_end_iteration_proc) (drfs_handle archive, drfs_handle iterator)
 
typedef struct drfs_file drfs_file
 
typedef struct drfs_file_info drfs_file_info
 
typedef dr_uint64(* drfs_file_size_proc) (drfs_handle archive, drfs_handle file)
 
typedef void(* drfs_flush_file_proc) (drfs_handle archive, drfs_handle file)
 
typedef drfs_result(* drfs_get_file_info_proc) (drfs_handle archive, const char *relativePath, drfs_file_info *fi)
 
typedef void * drfs_handle
 
typedef dr_bool32(* drfs_is_valid_extension_proc) (const char *extension)
 
typedef struct drfs_iterator drfs_iterator
 
typedef drfs_result(* drfs_move_file_proc) (drfs_handle archive, const char *relativePathOld, const char *relativePathNew)
 
typedef dr_bool32(* drfs_next_iteration_proc) (drfs_handle archive, drfs_handle iterator, drfs_file_info *fi)
 
typedef drfs_result(* drfs_open_archive_proc) (drfs_file *pArchiveFile, unsigned int accessMode, drfs_handle *pHandleOut)
 
typedef drfs_result(* drfs_open_file_proc) (drfs_handle archive, const char *relativePath, unsigned int accessMode, drfs_handle *pHandleOut)
 
typedef drfs_result(* drfs_read_file_proc) (drfs_handle archive, drfs_handle file, void *pDataOut, size_t bytesToRead, size_t *pBytesReadOut)
 
typedef drfs_result(* drfs_seek_file_proc) (drfs_handle archive, drfs_handle file, dr_int64 bytesToSeek, drfs_seek_origin origin)
 
typedef dr_uint64(* drfs_tell_file_proc) (drfs_handle archive, drfs_handle file)
 
typedef drfs_result(* drfs_write_file_proc) (drfs_handle archive, drfs_handle file, const void *pData, size_t bytesToWrite, size_t *pBytesWrittenOut)
 

Enumerations

enum  drfs_result {
  drfs_success = 0, drfs_unknown_error = -1, drfs_invalid_args = -2, drfs_does_not_exist = -3,
  drfs_already_exists = -4, drfs_permission_denied = -5, drfs_too_many_open_files = -6, drfs_no_backend = -7,
  drfs_out_of_memory = -8, drfs_not_in_write_directory = -9, drfs_path_too_long = -10, drfs_no_space = -11,
  drfs_not_directory = -12, drfs_too_large = -13, drfs_at_end_of_file = -14, drfs_invalid_archive = -15,
  drfs_negative_seek = -16, drfs_success = 0, drfs_unknown_error = -1, drfs_invalid_args = -2,
  drfs_does_not_exist = -3, drfs_already_exists = -4, drfs_permission_denied = -5, drfs_too_many_open_files = -6,
  drfs_no_backend = -7, drfs_out_of_memory = -8, drfs_not_in_write_directory = -9, drfs_path_too_long = -10,
  drfs_no_space = -11, drfs_not_directory = -12, drfs_too_large = -13, drfs_at_end_of_file = -14,
  drfs_invalid_archive = -15, drfs_negative_seek = -16
}
 
enum  drfs_seek_origin {
  drfs_origin_current, drfs_origin_start, drfs_origin_end, drfs_origin_current,
  drfs_origin_start, drfs_origin_end
}
 

Functions

void drfs_add_base_directory (drfs_context *pContext, const char *absolutePath)
 
dr_bool32 drfs_begin (drfs_context *pContext, const char *absoluteOrRelativePath, drfs_iterator *pIteratorOut)
 
void drfs_close (drfs_file *pFile)
 
void drfs_close_archive (drfs_archive *pArchive)
 
drfs_result drfs_copy_file (drfs_context *pContext, const char *srcPath, const char *dstPath, dr_bool32 failIfExists)
 
drfs_contextdrfs_create_context ()
 
drfs_result drfs_create_directory (drfs_context *pContext, const char *path)
 
drfs_result drfs_create_directory_recursive (drfs_context *pContext, const char *path)
 
void drfs_delete_context (drfs_context *pContext)
 
drfs_result drfs_delete_file (drfs_context *pContext, const char *path)
 
void drfs_disable_write_directory_guard (drfs_context *pContext)
 
void drfs_enable_write_directory_guard (drfs_context *pContext)
 
void drfs_end (drfs_context *pContext, drfs_iterator *pIterator)
 
dr_bool32 drfs_eof (drfs_file *pFile)
 
dr_bool32 drfs_exists (drfs_context *pContext, const char *absoluteOrRelativePath)
 
drfs_result drfs_find_absolute_path (drfs_context *pContext, const char *relativePath, char *absolutePathOut, size_t absolutePathOutSize)
 
drfs_result drfs_find_absolute_path_explicit_base (drfs_context *pContext, const char *relativePath, const char *highestPriorityBasePath, char *absolutePathOut, size_t absolutePathOutSize)
 
void drfs_flush (drfs_file *pFile)
 
void drfs_free (void *p)
 
const char * drfs_get_base_directory_by_index (drfs_context *pContext, unsigned int index)
 
unsigned int drfs_get_base_directory_count (drfs_context *pContext)
 
dr_bool32 drfs_get_base_write_directory (drfs_context *pContext, char *absolutePathOut, unsigned int absolutePathOutSize)
 
drfs_result drfs_get_file_info (drfs_context *pContext, const char *absoluteOrRelativePath, drfs_file_info *fi)
 
drfs_result drfs_init (drfs_context *pContext)
 
void drfs_insert_base_directory (drfs_context *pContext, const char *absolutePath, unsigned int index)
 
dr_bool32 drfs_is_archive_path (drfs_context *pContext, const char *path)
 
dr_bool32 drfs_is_base_directory (drfs_context *pContext, const char *baseDir)
 
dr_bool32 drfs_is_existing_directory (drfs_context *pContext, const char *absoluteOrRelativePath)
 
dr_bool32 drfs_is_existing_file (drfs_context *pContext, const char *absoluteOrRelativePath)
 
dr_bool32 drfs_is_write_directory_guard_enabled (drfs_context *pContext)
 
dr_bool32 drfs_lock (drfs_file *pFile)
 
drfs_result drfs_move_file (drfs_context *pContext, const char *pathOld, const char *pathNew)
 
dr_bool32 drfs_next (drfs_context *pContext, drfs_iterator *pIterator)
 
drfs_result drfs_open (drfs_context *pContext, const char *absoluteOrRelativePath, unsigned int accessMode, drfs_file **ppFileOut)
 
void * drfs_open_and_read_binary_file (drfs_context *pContext, const char *absoluteOrRelativePath, size_t *pSizeInBytesOut)
 
char * drfs_open_and_read_text_file (drfs_context *pContext, const char *absoluteOrRelativePath, size_t *pSizeInBytesOut)
 
drfs_result drfs_open_and_write_binary_file (drfs_context *pContext, const char *absoluteOrRelativePath, const void *pData, size_t dataSize)
 
drfs_result drfs_open_and_write_text_file (drfs_context *pContext, const char *absoluteOrRelativePath, const char *pTextData)
 
drfs_result drfs_open_archive (drfs_context *pContext, const char *absoluteOrRelativePath, unsigned int accessMode, drfs_archive **ppArchiveOut)
 
drfs_result drfs_open_file_from_archive (drfs_archive *pArchive, const char *relativePath, unsigned int accessMode, drfs_file **ppFileOut)
 
drfs_result drfs_open_owner_archive (drfs_context *pContext, const char *absoluteOrRelativePath, unsigned int accessMode, char *relativePathOut, size_t relativePathOutSize, drfs_archive **ppArchiveOut)
 
drfs_result drfs_read (drfs_file *pFile, void *pDataOut, size_t bytesToRead, size_t *pBytesReadOut)
 
drfs_result drfs_read_nolock (drfs_file *pFile, void *pDataOut, size_t bytesToRead, size_t *pBytesReadOut)
 
void drfs_register_archive_backend (drfs_context *pContext, drfs_archive_callbacks callbacks)
 
void drfs_remove_all_base_directories (drfs_context *pContext)
 
void drfs_remove_base_directory (drfs_context *pContext, const char *absolutePath)
 
void drfs_remove_base_directory_by_index (drfs_context *pContext, unsigned int index)
 
drfs_result drfs_seek (drfs_file *pFile, dr_int64 bytesToSeek, drfs_seek_origin origin)
 
drfs_result drfs_seek_nolock (drfs_file *pFile, dr_int64 bytesToSeek, drfs_seek_origin origin)
 
void drfs_set_base_write_directory (drfs_context *pContext, const char *absolutePath)
 
dr_uint64 drfs_size (drfs_file *pFile)
 
dr_uint64 drfs_size_nolock (drfs_file *pFile)
 
dr_uint64 drfs_tell (drfs_file *pFile)
 
dr_uint64 drfs_tell_nolock (drfs_file *pFile)
 
drfs_result drfs_uninit (drfs_context *pContext)
 
void drfs_unlock (drfs_file *pFile)
 
drfs_result drfs_write (drfs_file *pFile, const void *pData, size_t bytesToWrite, size_t *pBytesWrittenOut)
 
drfs_result drfs_write_line (drfs_file *pFile, const char *str)
 
drfs_result drfs_write_nolock (drfs_file *pFile, const void *pData, size_t bytesToWrite, size_t *pBytesWrittenOut)
 
drfs_result drfs_write_string (drfs_file *pFile, const char *str)
 

Macro Definition Documentation

◆ DR_FALSE

#define DR_FALSE   0

Definition at line 208 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ DR_SIZED_TYPES_DEFINED

#define DR_SIZED_TYPES_DEFINED

Definition at line 184 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ DR_TRUE

#define DR_TRUE   1

Definition at line 207 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ DRFS_CREATE_DIRS

#define DRFS_CREATE_DIRS   (1 << 4)

Definition at line 230 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ DRFS_EXISTING

#define DRFS_EXISTING   (1 << 2)

Definition at line 228 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ DRFS_FILE_ATTRIBUTE_DIRECTORY

#define DRFS_FILE_ATTRIBUTE_DIRECTORY   0x00000001

Definition at line 232 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ DRFS_FILE_ATTRIBUTE_READONLY

#define DRFS_FILE_ATTRIBUTE_READONLY   0x00000002

Definition at line 233 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ DRFS_MAX_PATH

#define DRFS_MAX_PATH   1024

Definition at line 222 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ DRFS_READ

#define DRFS_READ   (1 << 0)

Definition at line 226 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ DRFS_TRUNCATE

#define DRFS_TRUNCATE   (1 << 3)

Definition at line 229 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ DRFS_WRITE

#define DRFS_WRITE   (1 << 1)

Definition at line 227 of file rhino/demo/c/dr_libs/old/dr_fs.h.

Typedef Documentation

◆ dr_bool32

Definition at line 206 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ dr_bool8

typedef dr_uint8 dr_bool8

Definition at line 205 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ dr_int16

typedef int16_t dr_int16

Definition at line 198 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ dr_int32

typedef int32_t dr_int32

Definition at line 200 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ dr_int64

typedef int64_t dr_int64

Definition at line 202 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ dr_int8

typedef int8_t dr_int8

Definition at line 196 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ dr_uint16

typedef uint16_t dr_uint16

Definition at line 199 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ dr_uint32

typedef uint32_t dr_uint32

Definition at line 201 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ dr_uint64

typedef uint64_t dr_uint64

Definition at line 203 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ dr_uint8

typedef uint8_t dr_uint8

Definition at line 197 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ drfs_archive

typedef struct drfs_archive drfs_archive

Definition at line 269 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ drfs_begin_iteration_proc

typedef drfs_handle(* drfs_begin_iteration_proc) (drfs_handle archive, const char *relativePath)

Definition at line 278 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ drfs_close_archive_proc

typedef void(* drfs_close_archive_proc) (drfs_handle archive)

Definition at line 276 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ drfs_close_file_proc

typedef void(* drfs_close_file_proc) (drfs_handle archive, drfs_handle file)

Definition at line 286 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ drfs_context

typedef struct drfs_context drfs_context

Definition at line 268 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ drfs_copy_file_proc

typedef drfs_result(* drfs_copy_file_proc) (drfs_handle archive, const char *relativePathSrc, const char *relativePathDst, dr_bool32 failIfExists)

Definition at line 284 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ drfs_create_directory_proc

typedef drfs_result(* drfs_create_directory_proc) (drfs_handle archive, const char *relativePath)

Definition at line 282 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ drfs_delete_file_proc

typedef drfs_result(* drfs_delete_file_proc) (drfs_handle archive, const char *relativePath)

Definition at line 281 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ drfs_end_iteration_proc

typedef void(* drfs_end_iteration_proc) (drfs_handle archive, drfs_handle iterator)

Definition at line 279 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ drfs_file

typedef struct drfs_file drfs_file

Definition at line 270 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ drfs_file_info

Definition at line 271 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ drfs_file_size_proc

typedef dr_uint64(* drfs_file_size_proc) (drfs_handle archive, drfs_handle file)

Definition at line 291 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ drfs_flush_file_proc

typedef void(* drfs_flush_file_proc) (drfs_handle archive, drfs_handle file)

Definition at line 292 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ drfs_get_file_info_proc

typedef drfs_result(* drfs_get_file_info_proc) (drfs_handle archive, const char *relativePath, drfs_file_info *fi)

Definition at line 277 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ drfs_handle

typedef void* drfs_handle

Definition at line 266 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ drfs_is_valid_extension_proc

typedef dr_bool32(* drfs_is_valid_extension_proc) (const char *extension)

Definition at line 274 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ drfs_iterator

typedef struct drfs_iterator drfs_iterator

Definition at line 272 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ drfs_move_file_proc

typedef drfs_result(* drfs_move_file_proc) (drfs_handle archive, const char *relativePathOld, const char *relativePathNew)

Definition at line 283 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ drfs_next_iteration_proc

typedef dr_bool32(* drfs_next_iteration_proc) (drfs_handle archive, drfs_handle iterator, drfs_file_info *fi)

Definition at line 280 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ drfs_open_archive_proc

typedef drfs_result(* drfs_open_archive_proc) (drfs_file *pArchiveFile, unsigned int accessMode, drfs_handle *pHandleOut)

Definition at line 275 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ drfs_open_file_proc

typedef drfs_result(* drfs_open_file_proc) (drfs_handle archive, const char *relativePath, unsigned int accessMode, drfs_handle *pHandleOut)

Definition at line 285 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ drfs_read_file_proc

typedef drfs_result(* drfs_read_file_proc) (drfs_handle archive, drfs_handle file, void *pDataOut, size_t bytesToRead, size_t *pBytesReadOut)

Definition at line 287 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ drfs_seek_file_proc

typedef drfs_result(* drfs_seek_file_proc) (drfs_handle archive, drfs_handle file, dr_int64 bytesToSeek, drfs_seek_origin origin)

Definition at line 289 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ drfs_tell_file_proc

typedef dr_uint64(* drfs_tell_file_proc) (drfs_handle archive, drfs_handle file)

Definition at line 290 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ drfs_write_file_proc

typedef drfs_result(* drfs_write_file_proc) (drfs_handle archive, drfs_handle file, const void *pData, size_t bytesToWrite, size_t *pBytesWrittenOut)

Definition at line 288 of file rhino/demo/c/dr_libs/old/dr_fs.h.

Enumeration Type Documentation

◆ drfs_result

Enumerator
drfs_success 
drfs_unknown_error 
drfs_invalid_args 
drfs_does_not_exist 
drfs_already_exists 
drfs_permission_denied 
drfs_too_many_open_files 
drfs_no_backend 
drfs_out_of_memory 
drfs_not_in_write_directory 
drfs_path_too_long 
drfs_no_space 
drfs_not_directory 
drfs_too_large 
drfs_at_end_of_file 
drfs_invalid_archive 
drfs_negative_seek 
drfs_success 
drfs_unknown_error 
drfs_invalid_args 
drfs_does_not_exist 
drfs_already_exists 
drfs_permission_denied 
drfs_too_many_open_files 
drfs_no_backend 
drfs_out_of_memory 
drfs_not_in_write_directory 
drfs_path_too_long 
drfs_no_space 
drfs_not_directory 
drfs_too_large 
drfs_at_end_of_file 
drfs_invalid_archive 
drfs_negative_seek 

Definition at line 236 of file rhino/demo/c/dr_libs/old/dr_fs.h.

◆ drfs_seek_origin

Enumerator
drfs_origin_current 
drfs_origin_start 
drfs_origin_end 
drfs_origin_current 
drfs_origin_start 
drfs_origin_end 

Definition at line 258 of file rhino/demo/c/dr_libs/old/dr_fs.h.

Function Documentation

◆ drfs_add_base_directory()

void drfs_add_base_directory ( drfs_context pContext,
const char *  absolutePath 
)

◆ drfs_begin()

dr_bool32 drfs_begin ( drfs_context pContext,
const char *  absoluteOrRelativePath,
drfs_iterator pIteratorOut 
)

◆ drfs_close()

void drfs_close ( drfs_file pFile)

◆ drfs_close_archive()

void drfs_close_archive ( drfs_archive pArchive)

◆ drfs_copy_file()

drfs_result drfs_copy_file ( drfs_context pContext,
const char *  srcPath,
const char *  dstPath,
dr_bool32  failIfExists 
)

◆ drfs_create_context()

drfs_context* drfs_create_context ( )

◆ drfs_create_directory()

drfs_result drfs_create_directory ( drfs_context pContext,
const char *  path 
)

◆ drfs_create_directory_recursive()

drfs_result drfs_create_directory_recursive ( drfs_context pContext,
const char *  path 
)

◆ drfs_delete_context()

void drfs_delete_context ( drfs_context pContext)

◆ drfs_delete_file()

drfs_result drfs_delete_file ( drfs_context pContext,
const char *  path 
)

◆ drfs_disable_write_directory_guard()

void drfs_disable_write_directory_guard ( drfs_context pContext)

◆ drfs_enable_write_directory_guard()

void drfs_enable_write_directory_guard ( drfs_context pContext)

◆ drfs_end()

void drfs_end ( drfs_context pContext,
drfs_iterator pIterator 
)

◆ drfs_eof()

dr_bool32 drfs_eof ( drfs_file pFile)

◆ drfs_exists()

dr_bool32 drfs_exists ( drfs_context pContext,
const char *  absoluteOrRelativePath 
)

◆ drfs_find_absolute_path()

drfs_result drfs_find_absolute_path ( drfs_context pContext,
const char *  relativePath,
char *  absolutePathOut,
size_t  absolutePathOutSize 
)

◆ drfs_find_absolute_path_explicit_base()

drfs_result drfs_find_absolute_path_explicit_base ( drfs_context pContext,
const char *  relativePath,
const char *  highestPriorityBasePath,
char *  absolutePathOut,
size_t  absolutePathOutSize 
)

◆ drfs_flush()

void drfs_flush ( drfs_file pFile)

◆ drfs_free()

void drfs_free ( void *  p)

◆ drfs_get_base_directory_by_index()

const char* drfs_get_base_directory_by_index ( drfs_context pContext,
unsigned int  index 
)

◆ drfs_get_base_directory_count()

unsigned int drfs_get_base_directory_count ( drfs_context pContext)

◆ drfs_get_base_write_directory()

dr_bool32 drfs_get_base_write_directory ( drfs_context pContext,
char *  absolutePathOut,
unsigned int  absolutePathOutSize 
)

◆ drfs_get_file_info()

drfs_result drfs_get_file_info ( drfs_context pContext,
const char *  absoluteOrRelativePath,
drfs_file_info fi 
)

◆ drfs_init()

drfs_result drfs_init ( drfs_context pContext)

◆ drfs_insert_base_directory()

void drfs_insert_base_directory ( drfs_context pContext,
const char *  absolutePath,
unsigned int  index 
)

◆ drfs_is_archive_path()

dr_bool32 drfs_is_archive_path ( drfs_context pContext,
const char *  path 
)

◆ drfs_is_base_directory()

dr_bool32 drfs_is_base_directory ( drfs_context pContext,
const char *  baseDir 
)

◆ drfs_is_existing_directory()

dr_bool32 drfs_is_existing_directory ( drfs_context pContext,
const char *  absoluteOrRelativePath 
)

◆ drfs_is_existing_file()

dr_bool32 drfs_is_existing_file ( drfs_context pContext,
const char *  absoluteOrRelativePath 
)

◆ drfs_is_write_directory_guard_enabled()

dr_bool32 drfs_is_write_directory_guard_enabled ( drfs_context pContext)

◆ drfs_lock()

dr_bool32 drfs_lock ( drfs_file pFile)

◆ drfs_move_file()

drfs_result drfs_move_file ( drfs_context pContext,
const char *  pathOld,
const char *  pathNew 
)

◆ drfs_next()

dr_bool32 drfs_next ( drfs_context pContext,
drfs_iterator pIterator 
)

◆ drfs_open()

drfs_result drfs_open ( drfs_context pContext,
const char *  absoluteOrRelativePath,
unsigned int  accessMode,
drfs_file **  ppFileOut 
)

◆ drfs_open_and_read_binary_file()

void* drfs_open_and_read_binary_file ( drfs_context pContext,
const char *  absoluteOrRelativePath,
size_t *  pSizeInBytesOut 
)

◆ drfs_open_and_read_text_file()

char* drfs_open_and_read_text_file ( drfs_context pContext,
const char *  absoluteOrRelativePath,
size_t *  pSizeInBytesOut 
)

◆ drfs_open_and_write_binary_file()

drfs_result drfs_open_and_write_binary_file ( drfs_context pContext,
const char *  absoluteOrRelativePath,
const void *  pData,
size_t  dataSize 
)

◆ drfs_open_and_write_text_file()

drfs_result drfs_open_and_write_text_file ( drfs_context pContext,
const char *  absoluteOrRelativePath,
const char *  pTextData 
)

◆ drfs_open_archive()

drfs_result drfs_open_archive ( drfs_context pContext,
const char *  absoluteOrRelativePath,
unsigned int  accessMode,
drfs_archive **  ppArchiveOut 
)

◆ drfs_open_file_from_archive()

drfs_result drfs_open_file_from_archive ( drfs_archive pArchive,
const char *  relativePath,
unsigned int  accessMode,
drfs_file **  ppFileOut 
)

◆ drfs_open_owner_archive()

drfs_result drfs_open_owner_archive ( drfs_context pContext,
const char *  absoluteOrRelativePath,
unsigned int  accessMode,
char *  relativePathOut,
size_t  relativePathOutSize,
drfs_archive **  ppArchiveOut 
)

◆ drfs_read()

drfs_result drfs_read ( drfs_file pFile,
void *  pDataOut,
size_t  bytesToRead,
size_t *  pBytesReadOut 
)

◆ drfs_read_nolock()

drfs_result drfs_read_nolock ( drfs_file pFile,
void *  pDataOut,
size_t  bytesToRead,
size_t *  pBytesReadOut 
)

◆ drfs_register_archive_backend()

void drfs_register_archive_backend ( drfs_context pContext,
drfs_archive_callbacks  callbacks 
)

◆ drfs_remove_all_base_directories()

void drfs_remove_all_base_directories ( drfs_context pContext)

◆ drfs_remove_base_directory()

void drfs_remove_base_directory ( drfs_context pContext,
const char *  absolutePath 
)

◆ drfs_remove_base_directory_by_index()

void drfs_remove_base_directory_by_index ( drfs_context pContext,
unsigned int  index 
)

◆ drfs_seek()

drfs_result drfs_seek ( drfs_file pFile,
dr_int64  bytesToSeek,
drfs_seek_origin  origin 
)

◆ drfs_seek_nolock()

drfs_result drfs_seek_nolock ( drfs_file pFile,
dr_int64  bytesToSeek,
drfs_seek_origin  origin 
)

◆ drfs_set_base_write_directory()

void drfs_set_base_write_directory ( drfs_context pContext,
const char *  absolutePath 
)

◆ drfs_size()

dr_uint64 drfs_size ( drfs_file pFile)

◆ drfs_size_nolock()

dr_uint64 drfs_size_nolock ( drfs_file pFile)

◆ drfs_tell()

dr_uint64 drfs_tell ( drfs_file pFile)

◆ drfs_tell_nolock()

dr_uint64 drfs_tell_nolock ( drfs_file pFile)

◆ drfs_uninit()

drfs_result drfs_uninit ( drfs_context pContext)

◆ drfs_unlock()

void drfs_unlock ( drfs_file pFile)

◆ drfs_write()

drfs_result drfs_write ( drfs_file pFile,
const void *  pData,
size_t  bytesToWrite,
size_t *  pBytesWrittenOut 
)

◆ drfs_write_line()

drfs_result drfs_write_line ( drfs_file pFile,
const char *  str 
)

◆ drfs_write_nolock()

drfs_result drfs_write_nolock ( drfs_file pFile,
const void *  pData,
size_t  bytesToWrite,
size_t *  pBytesWrittenOut 
)

◆ drfs_write_string()

drfs_result drfs_write_string ( drfs_file pFile,
const char *  str 
)


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:14:57