Function mongocrypt_sys::mongocrypt_binary_new_from_data

source ยท
pub unsafe extern "C" fn mongocrypt_binary_new_from_data(
    data: *mut u8,
    len: u32,
) -> *mut mongocrypt_binary_t
Expand description

Create a new non-owning view of a buffer (data + length).

@param[in] data A pointer to an array of bytes. This data is not copied. @p data must outlive the binary object. @param[in] len The length of the @p data byte array.

@returns A new @ref mongocrypt_binary_t.