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

pub unsafe extern "C" fn cbor_encode_byte_string(
    encoder: *mut CborEncoder,
    string: *const u8,
    length: usize
) -> CborError

Appends the text string \a string of length \a length to the CBOR stream provided by \a encoder. CBOR requires that \a string be valid UTF-8, but TinyCBOR makes no verification of correctness.

\sa CborError cbor_encode_text_stringz, cbor_encode_byte_string