ext/iodine/mustache_parser.h
/* data segment serialization, reads data from raw stream. */
data segment serialization, reads data from raw stream.
data segment serialization reads data from raw stream .
static inline mustache__data_segment_s
mustache__data_segment_read(uint8_t *data) {
  mustache__data_segment_s s = {
      .filename = (char *)(data + 12),
      .inst_start = ((uint32_t)data[0] | ((uint32_t)data[1] << 1) |
                     ((uint32_t)data[2] << 2) | ((uint32_t)data[3] << 3)),
      .next = ((uint32_t)data[4] | ((uint32_t)data[5] << 1) |
               ((uint32_t)data[6] << 2) | ((uint32_t)data[7] << 3)),
      .filename_len = ((uint16_t)data[8] | ((uint16_t)data[9] << 1)),
      .path_len = ((uint16_t)data[10] | ((uint16_t)data[11] << 1)),
  };
  return s;
}
static inline mustache__data_segment_s mustache__data_segment_read ( uint8_t * data ) { mustache__data_segment_s s = { . filename = ( char * ) ( data + 12 ) , . inst_start = ( ( uint32_t ) data [ 0 ] | ( ( uint32_t ) data [ 1 ] << 1 ) | ( ( uint32_t ) data [ 2 ] << 2 ) | ( ( uint32_t ) data [ 3 ] << 3 ) ) , . next = ( ( uint32_t ) data [ 4 ] | ( ( uint32_t ) data [ 5 ] << 1 ) | ( ( uint32_t ) data [ 6 ] << 2 ) | ( ( uint32_t ) data [ 7 ] << 3 ) ) , . filename_len = ( ( uint16_t ) data [ 8 ] | ( ( uint16_t ) data [ 9 ] << 1 ) ) , . path_len = ( ( uint16_t ) data [ 10 ] | ( ( uint16_t ) data [ 11 ] << 1 ) ) , } ; return s ; }
data segment serialization, reads data from raw stream.
data segment serialization reads data from raw stream .