Home
last modified time | relevance | path

Searched refs:stxtheader (Results 1 – 3 of 3) sorted by relevance

/haiku/src/tools/translation/stxtinfo/
H A Dstxtinfo.cpp195 TranslatorStyledTextStreamHeader stxtheader; in PrintStxtInfo() local
196 memcpy(&stxtheader, buffer, kstxtsize); in PrintStxtInfo()
197 if (swap_data(B_UINT32_TYPE, &stxtheader, kstxtsize, in PrintStxtInfo()
203 if (stxtheader.header.magic != B_STYLED_TEXT_FORMAT) { in PrintStxtInfo()
211 printf("magic number: 0x%.8lx ", stxtheader.header.magic); in PrintStxtInfo()
212 if (stxtheader.header.magic == B_STYLED_TEXT_FORMAT) in PrintStxtInfo()
219 static_cast<unsigned int>(stxtheader.header.header_size)); in PrintStxtInfo()
220 if (stxtheader.header.header_size == kstxtsize) in PrintStxtInfo()
227 static_cast<unsigned int>(stxtheader.header.data_size)); in PrintStxtInfo()
228 if (stxtheader.header.data_size == 0) in PrintStxtInfo()
[all …]
/haiku/src/add-ons/translators/stxt/
H A DSTXTTranslator.cpp381 TranslatorStyledTextStreamHeader stxtheader; in output_headers() local
386 stxtheader.header.magic = 'STXT'; in output_headers()
387 stxtheader.header.header_size = sizeof(TranslatorStyledTextStreamHeader); in output_headers()
388 stxtheader.header.data_size = 0; in output_headers()
389 stxtheader.version = 100; in output_headers()
390 memcpy(buffer, &stxtheader, stxtheader.header.header_size); in output_headers()
396 memcpy(buffer + stxtheader.header.header_size, &txtheader, in output_headers()
/haiku/src/add-ons/translators/rtf/
H A Dconvert.cpp672 TranslatorStyledTextStreamHeader stxtheader; in convert_styled_text_to_rtf() local
677 if (source->Read(&stxtheader, kstxtsize) != kstxtsize) in convert_styled_text_to_rtf()