[][src]Function mynewt::encoding::tinycbor::cbor_encode_floating_point

pub unsafe extern "C" fn cbor_encode_floating_point(
    encoder: *mut CborEncoder,
    fpType: CborType,
    value: *const c_void
) -> CborError

Appends the floating-point value of type \a fpType and pointed to by \a value to the CBOR stream provided by \a encoder. The value of \a fpType must be one of CborHalfFloatType, CborFloatType or CborDoubleType, otherwise the behavior of this function is undefined.

This function is useful for code that needs to pass through floating point values but does not wish to have the actual floating-point code.

\sa cbor_encode_half_float, cbor_encode_float, cbor_encode_double