[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Reading files as byte array
From: |
Han-Wen Nienhuys |
Subject: |
Re: Reading files as byte array |
Date: |
Mon, 6 Sep 2021 09:58:15 +0200 |
On Mon, Sep 6, 2021 at 12:41 AM Lukas-Fabian Moser <lfm@gmx.de> wrote:
>
>
> >>> 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?
see ly:find-file.
--
Han-Wen Nienhuys - hanwenn@gmail.com - http://www.xs4all.nl/~hanwen
Re: Reading files as byte array, Jonas Hahnfeld, 2021/09/05