Function rune_native::rune_string_tensor_get_by_index
source · [−]#[no_mangle]
pub unsafe extern "C" fn rune_string_tensor_get_by_index(
tensor: *const StringTensor<'_>,
index: usize,
string_out: *mut *const u8
) -> c_int
Expand description
Get a pointer to the string at a specific index in the StringTensor
’s
backing array, returning its length in bytes and setting string_out
if
that string exists.
If the index is out of bounds, this function returns 0
and sets
string_out
to null
.