The callback used to get the error from last operation on the `FFI_ArrowArrayStream`
(stream: *mut FFI_ArrowArrayStream)
| 141 | |
| 142 | // The callback used to get the error from last operation on the `FFI_ArrowArrayStream` |
| 143 | unsafe 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 | |
| 153 | impl Drop for FFI_ArrowArrayStream { |
| 154 | fn drop(&mut self) { |
no test coverage detected