[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [EXT] [PATCH] Add 'bytevector-slice'.
From: |
lloda |
Subject: |
Re: [EXT] [PATCH] Add 'bytevector-slice'. |
Date: |
Fri, 13 Jan 2023 10:30:42 +0100 |
> On 12 Jan 2023, at 23:27, Ludovic Courtès <ludo@gnu.org> wrote:
>
> lloda <lloda@sarc.name> skribis:
>
>>> On 11 Jan 2023, at 18:37, Thompson, David <dthompson2@worcester.edu> wrote:
>>>
>>> On Wed, Jan 11, 2023 at 12:34 PM Ludovic Courtès <ludo@gnu.org> wrote:
>>>>
>>>> What could be convenient though is ‘bytevector-copy’ (no bang), which
>>>> would combine ‘make-bytevector’ + ‘bytevector-copy!’.
>>>
>>> 'bytevector-copy' already exists, or do you mean some different
>>> implementation of it?
>>>
>>> - Dave
>>
>> The current bytevector-copy takes a single argument.
>
> Right, what I had in mind is one that would take an offset and size; I
> hadn’t realized the name was already taken.
>
> Thanks,
> Ludo’.
Actually (scheme base) from r7rs already defines (bytevector-copy bytevector
start end), this is of course r7rs's convention. This is hidden in Guile's
manual, which only lists the 1-argument version from r6rs.
The mysterious ‘SCM_F_BYTEVECTOR_CONTIGUOUS’, Ludovic Courtès, 2023/01/11
Re: [PATCH] Add 'bytevector-slice'., Maxime Devos, 2023/01/11
Re: [PATCH] Add 'bytevector-slice'., Ludovic Courtès, 2023/01/14