pub unsafe extern "C" fn APersistableBundle_getLongVector(
pBundle: *const APersistableBundle,
key: *const c_char,
buffer: *mut i64,
bufferSizeBytes: i32,
) -> i32Expand description
Get an int64_t vector associated with the provided key and place it in the provided pre-allocated buffer from the user.
This function returns the size in bytes of stored vector. The supplied buffer will be filled in based on the smaller of the supplied bufferSizeBytes or the actual size of the stored data. If the buffer is null or if the supplied bufferSizeBytes is smaller than the actual stored data, then not all of the stored data will be returned.
Users can call this function with null buffer and 0 bufferSizeBytes to get the required size of the buffer to use on a subsequent call.
\param pBundle to operate on \param key for the mapping in UTF-8 \param buffer pointer to a pre-allocated buffer to write the values to \param bufferSizeBytes size of the pre-allocated buffer
\return size of the stored vector in bytes. This is the required size of the pre-allocated user supplied buffer if all of the stored contents are desired. APERSISTABLEBUNDLE_KEY_NOT_FOUND if the key was not found