#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_mavlink_message_get_int(
message: *const PamojaMavlinkMessage,
field: *const c_char,
index: usize,
out_value: *mut i64,
) -> PamojaStatusExpand description
Reads a field as a signed integer.
Any integer field reads this way, whatever its width or sign.
§Arguments
message- the message to read.field- the field name.index- the element to read, or0for a scalar field.out_value- set to the value on success.
§Returns
PamojaStatus::Ok on success.
§Errors
Returns PamojaStatus::InvalidArgument if a pointer is null, the message has no such
field, the element is past the end of an array, the field is floating-point, or a
uint64_t value is above the signed range.
§Safety
message must be a live message handle, field a null-terminated C string, and
out_value must point at writable storage for one 64-bit integer.