|
From: | Lukas-Fabian Moser |
Subject: | Re: Reading files as byte array |
Date: | Mon, 6 Sep 2021 00:41:39 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 |
Would it be considered okay if we included a scheme function to read a binary file to a byte array?GUILE already supports this out of the box. Have you seen https://www.gnu.org/software/guile/manual/html_node/Binary-I_002fO.html ?Yes, of course GUILE supports this. But the problem is that this does not go through Lilypond’s path handling. So I really do not think this would be a good thing to use (of course one can use that internally, but I’m talking about a Lilypond friendly interface).
Just from comparing those statements: Would it be reasonable (and maybe generally useful) to make global_path.find (used in gulp_file_to_string, lily-guile.cc) available at scheme level?
Lukas
[Prev in Thread] | Current Thread | [Next in Thread] |