Skip to content

Implementing ReadBuffer for &mut [C;N] might be unsound #24

@jounathaen

Description

@jounathaen

As mentioned in #23, we basically implement ReadBuffer for all &mut [C;N] in

unsafe impl<'a, C: PixelColor, const N: usize> DMACapableFrameBufferBackend for &'a mut [C; N] {

This might be problematic because the slice could not be suitable for DMA access. Maybe it is already fine as is, but as I haven't fully thought this through, I'll leave this as an issue for now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions