bjorn3 commented on issue #1035:
The
CodeSinktrait is now gone.MachBufferFinalizedcontains all information in the form ofSmallVec's which the user can access as slices. As such I think this issue can be closed.
cfallin closed issue #1035:
Currently, binemit has its own CodeSink trait for writing binary data. It isn't entirely satisfying, in part because it's an unsafe interface -- it doesn't perform bounds checking on the underlying data. While we can provide relatively safe interfaces to protect users from misusing the API, it's harder to be absolutely certain that the number of bytes
compilesays a function needs is the number of bytesemit_to_memoryactually writes for that function.One option would be to provide a safe checked version of
MemoryCodeSink. However, it's also worth considering evaluating available crates that provide low-level byte buffer writing functionality, including:
cfallin commented on issue #1035:
Yep, this is no longer an issue -- thanks!
Last updated: Dec 06 2025 at 06:05 UTC