ConstBytes
class ConstBytes Import
Source: use ffi::types::{ConstBytes}; compiler/src/builtin_docs/ffi/types.hy FFI tag for a read-only byte view (const uint8_t *) of a string or Vec<byte>.
A string is lent in place without a copy, and so is a packed Vec<byte>
under the same rules as Bytes; any other Vec<byte> is copied in once
and never copied back. No NUL terminator is added, so pass the length
separately. Argument only.
See also#
stringVecffi::types::BytesInt: FFI tag for a 64-bit signed integer (int64_t), passed from and returned asint.Float: FFI tag for a 64-bit float (double), passed from and returned asfloat.String: FFI tag for a NUL-terminated C string (const char *), passed from and returned asstring.Void: FFI tag for no value (void), valid only as a return type.Bool: FFI tag for a Cbool(one byte,0or1), passed from and returned asbool.