38 typedef enum as_bytes_type_e {
238 typedef struct as_bytes_s {
291 #define as_bytes_inita(__bytes, __capacity)\
292 as_bytes_init(__bytes, 0);\
293 (__bytes)->type = AS_BYTES_BLOB;\
294 (__bytes)->free = false;\
295 (__bytes)->capacity = __capacity;\
296 (__bytes)->size = 0;\
297 (__bytes)->value = (uint8_t *) alloca(__capacity * sizeof(uint8_t));
409 if ( !bytes )
return 0;
424 if ( !bytes )
return 0;
453 if ( !bytes )
return;
475 return bytes ? bytes->
value : fallback;
665 return as_bytes_set(bytes, index, (uint8_t *) &value, 1);
681 return as_bytes_set(bytes, index, (uint8_t *) &value, 2);
697 return as_bytes_set(bytes, index, (uint8_t *) &value, 4);
713 return as_bytes_set(bytes, index, (uint8_t *) &value, 8);
884 if ( !bytes )
return NULL;