Home
last modified time | relevance | path

Searched refs:stylheader (Results 1 – 2 of 2) sorted by relevance

/haiku/src/tools/translation/stxtinfo/
H A Dstxtinfo.cpp300 TranslatorStyledTextStyleHeader stylheader; in PrintStxtInfo() local
313 memcpy(&stylheader, buffer, kstylsize); in PrintStxtInfo()
314 if (swap_data(B_UINT32_TYPE, &stylheader, kstylsize, in PrintStxtInfo()
323 printf("magic number: 0x%.8lx ", stylheader.header.magic); in PrintStxtInfo()
324 if (stylheader.header.magic == 'STYL') in PrintStxtInfo()
331 static_cast<unsigned int>(stylheader.header.header_size)); in PrintStxtInfo()
332 if (stylheader.header.header_size == kstylsize) in PrintStxtInfo()
339 static_cast<unsigned int>(stylheader.header.data_size)); in PrintStxtInfo()
341 static_cast<unsigned int>(stylheader.apply_offset)); in PrintStxtInfo()
343 static_cast<unsigned int>(stylheader.apply_length)); in PrintStxtInfo()
/haiku/src/add-ons/translators/stxt/
H A DSTXTTranslator.cpp171 TranslatorStyledTextStyleHeader stylheader; in identify_stxt_header() local
180 memcpy(&stylheader, buffer, kstylsize); in identify_stxt_header()
181 if (swap_data(B_UINT32_TYPE, &stylheader, kstylsize, in identify_stxt_header()
185 if (stylheader.header.magic != 'STYL' in identify_stxt_header()
186 || stylheader.header.header_size != in identify_stxt_header()
448 TranslatorStyledTextStyleHeader stylheader; in output_styles() local
449 stylheader.header.magic = 'STYL'; in output_styles()
450 stylheader.header.header_size = in output_styles()
452 stylheader.header.data_size = data_size; in output_styles()
453 stylheader.apply_offset = 0; in output_styles()
[all …]