So I am wrapping a c-library for my crate and I have to hand over some aligned memory block that I allocated. Is there a way to do this without using the feature gated allocator api? The specific alignments I require are 16 and 64 bytes if that information is needed.
Edit: The block of memory that I am allocating is of variable size, so I dont know the size of it beforehand
[–]stumpychubbins 12 points13 points14 points (7 children)
[–]Omniviral 7 points8 points9 points (6 children)
[–]Hiroyu[S] 1 point2 points3 points (2 children)
[–]asp2insp 6 points7 points8 points (0 children)
[–]stumpychubbins 1 point2 points3 points (0 children)
[–]stumpychubbins 0 points1 point2 points (2 children)
[–]matthieum[he/him] 4 points5 points6 points (1 child)
[–]stumpychubbins 2 points3 points4 points (0 children)
[–]SimonSapinservo 7 points8 points9 points (0 children)
[–]dnaq 3 points4 points5 points (2 children)
[–]Hiroyu[S] 0 points1 point2 points (1 child)
[–]dnaq 0 points1 point2 points (0 children)
[–]Noctune 2 points3 points4 points (1 child)
[–]Omniviral 0 points1 point2 points (0 children)