Skip to main content

duckdb_vector_assign_string_element_len

Function duckdb_vector_assign_string_element_len 

Source
pub unsafe extern "C" fn duckdb_vector_assign_string_element_len(
    vector: duckdb_vector,
    index: idx_t,
    str_: *const c_char,
    str_len: idx_t,
)
Expand description

Assigns a string element in the vector at the specified location. The vector type can be VARCHAR or BLOB. In the case of VARCHAR, you must pass valid UTF-8. Otherwise, undefined behavior is expected at later stages.

@param vector The vector to alter @param index The row position in the vector to assign the string to @param str The string @param str_len The length of the string (in bytes)