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
I'm not sure there's much advantage to me letting people wrap whatever type like like for this thing. Might be better to simply do:
mutable struct AllocBuffer
ptr::Ptr{UInt8}
length::Int
offset::UInt8endfunctionAllocBuffer(length::Int; finalize=true)
ptr =malloc(length)
out =AllocBuffer(ptr, length, UInt(0))
if finalize
finalizer(x ->free(x.ptr), out)
end
out
end
which'd make it more similar to SlabBuffer. This'd be a breaking change, so I'd like to do it before 1.0 if I do it.
The text was updated successfully, but these errors were encountered:
I'm not sure there's much advantage to me letting people wrap whatever type like like for this thing. Might be better to simply do:
which'd make it more similar to
SlabBuffer
. This'd be a breaking change, so I'd like to do it before 1.0 if I do it.The text was updated successfully, but these errors were encountered: