Add read_entire to FFI

a
This commit is contained in:
Jackson Coxson
2026-01-05 06:55:11 -07:00
parent 96b380ebc9
commit 13be1ae377
2 changed files with 40 additions and 1 deletions

View File

@@ -254,7 +254,7 @@ int main(int argc, char **argv) {
} else {
uint8_t *data = NULL;
size_t length = 0;
err = afc_file_read(file, &data, &length);
err = afc_file_read_entire(file, &data, &length);
if (err == NULL) {
if (write_file(dest_path, data, length)) {
printf("File downloaded successfully\n");