flat_read_chunk
flat_read_chunk(inb, &val, sizeof(val));
flat_read_chunk(inb, d.val, len);
flat_read_chunk(inb, &re, sizeof(re));