From 4dcfe9c0a8b03915d93420d523d6bdc1884bd137 Mon Sep 17 00:00:00 2001 From: Gediminas Jakutis Date: Wed, 10 Mar 2021 15:40:52 +0200 Subject: now with uncached arrays! Signed-off-by: Gediminas Jakutis --- src/main.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 7c10da4..d82b0d6 100644 --- a/src/main.c +++ b/src/main.c @@ -78,7 +78,8 @@ int main(int argc, char **argv) try_s((ret = cache_transfer(&file_tmp, &file_out)), out); } } else { /* uncached */ - /* TODO */ + bench(&file_in, &file_tmp); + file_transfer(&file_tmp, &file_out); } stream_close(&file_in); @@ -235,7 +236,11 @@ static int load_io_functions(struct settings const * const s, struct stream * co } } } else { - ret = ENOSYS; + if (s->format == array) { + in->get = file_get_array; + in->put = file_put_array; + in->copy = stream_copy_range; + } } return ret; -- cgit v1.2.3