static bool cbor_object_is_array()

in nsm-driver/nsm.c [476:486]


static bool cbor_object_is_array(const uint8_t *cbor_object, size_t cbor_object_size)
{
	uint8_t cbor_type;

	if (cbor_object_size == 0 || cbor_object == NULL)
		return false;

	/* The object type is defined by the first 3 bits in the object header */
	cbor_type = (cbor_object[0] >> 5) & 0x7;
	return cbor_type == CBOR_TYPE_ARRAY;
}