src/flb_mp.c
void flb_mp_set_map_header_size(char *buf, int arr_size)
{
    uint8_t h;
    char *tmp = buf;

    h = tmp[0];
    if (h >> 4 == 0x8) { /* 1000xxxx */
        *tmp = (uint8_t) 0x8 << 4 | ((uint8_t) arr_size);
    }
    else if (h == 0xde) {
        tmp++;
        pack_uint16(tmp, arr_size);
    }
    else if (h == 0xdf) {
        tmp++;
        pack_uint32(tmp, arr_size);
    }
}
/* Adjust a mspack header buffer size */
Adjust a mspack header buffer size
Adjust a mspack header buffer size
void flb_mp_set_map_header_size(char *buf, int arr_size)
{
    uint8_t h;
    char *tmp = buf;
    h = tmp[0];
    if (h >> 4 == 0x8) { 
        *tmp = (uint8_t) 0x8 << 4 | ((uint8_t) arr_size);
    }
    else if (h == 0xde) {
        tmp++;
        pack_uint16(tmp, arr_size);
    }
    else if (h == 0xdf) {
        tmp++;
        pack_uint32(tmp, arr_size);
    }
}
void flb_mp_set_map_header_size ( char * buf , int arr_size ) { uint8_t h ; char * tmp = buf ; h = tmp [ 0 ] ; if ( h >> 4 == 0x8 ) { * tmp = ( uint8_t ) 0x8 << 4 | ( ( uint8_t ) arr_size ) ; } else if ( h == 0xde ) { tmp ++ ; pack_uint16 ( tmp , arr_size ) ; } else if ( h == 0xdf ) { tmp ++ ; pack_uint32 ( tmp , arr_size ) ; } }
Adjust a mspack header buffer size
Adjust a mspack header buffer size
/* 1000xxxx */