fn readFileAlloc(self: Dir, allocator: mem.Allocator, file_path: []const u8, max_bytes: usize) ![]u8

On success, caller owns returned buffer. If the file is larger than max_bytes, returns error.FileTooBig.

Parameters

self: Dir,
allocator: mem.Allocator,
file_path: []const u8,
max_bytes: usize,