Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kStatus kFile_Load | ( | const kChar * | path,
|  | void * | data,
|  | kSize * | size,
|  | kAlloc | allocator
| ) |  |

Reads the specified file and provides the file contents in an array.

Parameters

  path | Path to file.
  data | Receives a pointer to the file contents.
  size | Receives the size of the file contents.
  allocator | Memory allocator (or kNULL for default).

Returns
  Operation status.