Function Byond_ToString

Source
pub unsafe extern "C-unwind" fn Byond_ToString(
    src: *const CByondValue,
    buf: *mut c_char,
    buf_len: *mut usize,
) -> bool
Expand description

Uses BYOND’s internals to represent a value as text Blocks if not on the main thread.

§Arguments

  • src - The value to convert to text
  • buf - char array, allocated by caller (can be null if querying length)
  • buflen - Pointer to length of array in bytes; receives the string length (including trailing null) on success, or required length of array if not big enough

§Returns

True on success; false with *buflen=0 for failure; false with *buflen=required size if array is not big enough