MCPcopy Create free account
hub / github.com/apache/arrow-rs / get_last_error

Function get_last_error

arrow-array/src/ffi_stream.rs:143–151  ·  view source on GitHub ↗

The callback used to get the error from last operation on the `FFI_ArrowArrayStream`

(stream: *mut FFI_ArrowArrayStream)

Source from the content-addressed store, hash-verified

141
142// The callback used to get the error from last operation on the `FFI_ArrowArrayStream`
143unsafe extern "C" fn get_last_error(stream: *mut FFI_ArrowArrayStream) -> *const c_char {
144 let mut ffi_stream = ExportedArrayStream { stream };
145 // The consumer should not take ownership of this string, we should return
146 // a const pointer to it.
147 match ffi_stream.get_last_error() {
148 Some(err_string) => err_string.as_ptr(),
149 None => std::ptr::null(),
150 }
151}
152
153impl Drop for FFI_ArrowArrayStream {
154 fn drop(&mut self) {

Callers 1

get_stream_last_errorMethod · 0.85

Calls 2

get_last_errorMethod · 0.80
as_ptrMethod · 0.45

Tested by

no test coverage detected