module

CrtempFFI

Class methods

buf_to_string(buf : Bytes) : String

Convert a null-terminated C buffer into a Crystal String

Source
cleanup_tempfile(buf : Bytes)

Remove tempfile pointed by a buffer

Source
copy_slice_to_buf(src : Slice(UInt8), buf : Bytes)

Copy a Slice(UInt8) into a Bytes buffer and append a NUL

Source