/* Return the number of bytes that would follow the additional info field  */
static unsigned char uint_bytes_follow(unsigned char additional_info)
/* Return the number of bytes that would follow the additional info field  */
static unsigned char uint_bytes_follow(unsigned char additional_info)
{
    if (additional_info < CBOR_UINT8_FOLLOWS || additional_info > CBOR_UINT64_FOLLOWS) {
        return 0;
    }
    static const unsigned char BYTES_FOLLOW[] = {1, 2, 4, 8};
    return BYTES_FOLLOW[additional_info - CBOR_UINT8_FOLLOWS];
}