# [−][src]Function mynewt::encoding::tinycbor::cbor_encoder_create_array

    pub unsafe extern "C" fn cbor_encoder_create_array(
        encoder: *mut CborEncoder,
        arrayEncoder: *mut CborEncoder,
        length: usize
    ) -> CborError

Creates a CBOR array in the CBOR stream provided by \a encoder and initializes \a arrayEncoder so that items can be added to the array using the CborEncoder functions. The array must be terminated by calling either cbor_encoder_close_container() or cbor_encoder_close_container_checked() with the same \a encoder and \a arrayEncoder parameters.

The number of items inserted into the array must be exactly \a length items, otherwise the stream is invalid. If the number of items is not known when creating the array, the constant \ref CborIndefiniteLength may be passed as length instead.

\sa cbor_encoder_create_map

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g., `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g., `vec -> usize` or `* -> vec`)

Search multiple things at once by splitting your query with comma (e.g., `str,u8` or `String,struct:Vec,test`)