34 typedef enum as_bytes_type_e {
234 typedef struct as_bytes_s {
287 #define as_bytes_inita(__bytes, __capacity)\
288 as_bytes_init(__bytes, 0);\
289 (__bytes)->type = AS_BYTES_BLOB;\
290 (__bytes)->free = false;\
291 (__bytes)->capacity = __capacity;\
292 (__bytes)->size = 0;\
293 (__bytes)->value = (uint8_t *) alloca(__capacity * sizeof(uint8_t));
405 if ( !bytes )
return 0;
420 if ( !bytes )
return 0;
449 if ( !bytes )
return;
471 return bytes ? bytes->
value : fallback;
643 return as_bytes_set(bytes, index, (uint8_t *) &value, 1);
659 return as_bytes_set(bytes, index, (uint8_t *) &value, 2);
675 return as_bytes_set(bytes, index, (uint8_t *) &value, 4);
691 return as_bytes_set(bytes, index, (uint8_t *) &value, 8);
848 if ( !bytes )
return NULL;