Re: [PATCH v11 2/3] rust: add dma coherent allocator abstraction.
From: Alice Ryhl
Date: Tue Jan 28 2025 - 05:25:54 EST
On Tue, Jan 28, 2025 at 11:23 AM Daniel Almeida
<daniel.almeida@xxxxxxxxxxxxx> wrote:
>
> Alice,
>
> >
> > The difference is exactly that - you reduce the amount of data copied
> > to just the size of the field.
> >
> > Alice
> >
>
>
> Is your idea to have that *in addition* to the safe methods?
>
> How does it work when you want to read a T at a time?
I mean, I imagine that you could make the syntax
`dma_read!(my_alloc[7])` read the entire struct. I'm not sure which
safe methods you are referring to, because right now there is only the
unsafe as_slice().
Alice