Function Byond_ReadList

Source
pub unsafe extern "C-unwind" fn Byond_ReadList(
    loc: *const CByondValue,
    list: *mut CByondValue,
    len: *mut usize,
) -> bool
Expand description

Reads items from a list. Blocks if not on the main thread.

§Arguments

  • loc - The list to read
  • list - CByondValue array, allocated by caller (can be null if querying length)
  • len - Pointer to length of array (in items); receives the number of items read on success, or required length of array if not big enough

§Returns

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