read in bytes

This commit is contained in:
herbglitch 2024-01-27 03:14:04 -07:00
parent 7dc58b60a6
commit 7b9bdf0f92
2 changed files with 45 additions and 0 deletions

View file

@ -8,6 +8,16 @@ extern "C" {
#include <stdint.h>
#include "arc/std/string.h"
/**
* @brief get string and size from file
*
* @param path a string to path of target file
* @param data pointer to where uint8_t array will be created
* this will need to be freed once done using it
* @param length length of the data read in
*/
void ARC_IO_ReadFileToUint8t(ARC_String *path, uint8_t **data, uint64_t *length);
/**
* @brief get string and size from file
*