aboutsummaryrefslogtreecommitdiff
path: root/stdlib/paths.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-11-03 16:58:12 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-11-03 16:58:12 -0500
commit52e3d3fe6f2c3e5051affe155fed364d1a5d623c (patch)
tree9491276759a394e4f7e4678f53dc3e8dc68bc28c /stdlib/paths.h
parent7ddb2ffb02f9fff5d78c990165d1008248628c66 (diff)
Update Path:read_bytes() API to take a byte count
Diffstat (limited to 'stdlib/paths.h')
-rw-r--r--stdlib/paths.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/stdlib/paths.h b/stdlib/paths.h
index 551467e9..989e5d84 100644
--- a/stdlib/paths.h
+++ b/stdlib/paths.h
@@ -7,6 +7,7 @@
#include "types.h"
#include "datatypes.h"
+#include "optionals.h"
#define Path_t Text_t
#define OptionalPath_t Text_t
@@ -34,7 +35,7 @@ void Path$write_bytes(Path_t path, Array_t bytes, int permissions);
void Path$append(Path_t path, Text_t text, int permissions);
void Path$append_bytes(Path_t path, Array_t bytes, int permissions);
OptionalText_t Path$read(Path_t path);
-OptionalArray_t Path$read_bytes(Path_t path);
+OptionalArray_t Path$read_bytes(Path_t path, OptionalInt_t limit);
void Path$remove(Path_t path, bool ignore_missing);
void Path$create_directory(Path_t path, int permissions);
Array_t Path$children(Path_t path, bool include_hidden);