You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actually, as Bytes stands today, I don't think it's possible to safely wrap an aligned buffer in Bytes. The problem is that deallocneeds to know the layout, and I can't think of a way to tell Bytes.vtable.drop about the layout (it always assumes the layout is 1).
See this code sketch for how to create a
Bytes
from an aligned buffer.This will get easier if my PR to
Bytes
gets accepted: tokio-rs/bytes#684Why?
Once the operating system has written into these buffers, I'd love to wrap the buffer in
Bytes
so I can:object_store
's API which returnsBytes
.The text was updated successfully, but these errors were encountered: