From 1360be3b26a4fe8a3ece98440df5a82253ac23ba Mon Sep 17 00:00:00 2001 From: Hrutvik Kanabar Date: Tue, 25 Oct 2022 10:14:37 +0000 Subject: prog: introduce new Base64 syntax for data The new "$..." syntax is read as a Base64 encoding binary data. Note that users cannot specify the size of the Base64 syntax using the `"..."/` notation. When serialising programs to human-readable form, only compressed types (determined by `IsCompressed()`) are represented using the new Base64 notation. Also add a couple of serialisation tests, checking behaviour for compressed and non-compressed types. --- sys/test/test.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys') diff --git a/sys/test/test.txt b/sys/test/test.txt index c780d5fe9..86be743d1 100644 --- a/sys/test/test.txt +++ b/sys/test/test.txt @@ -776,6 +776,8 @@ minimize$0(a0 proc[10, 2], a1 proc[10, 2, opt]) serialize0(a ptr[in, serialize0_struct]) serialize1(a ptr[out, array[int8]], b len[a]) +serialize2(a ptr[in, array[int8]]) +serialize3(a ptr[in, compressed_image]) (no_generate, no_minimize) serialize0_struct { a string[serialize_strings, 10] -- cgit mrf-deployment