Home
last modified time | relevance | path

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

/haiku/src/tools/translation/stxtinfo/
H A Dstxtinfo.cpp181 const uint32 kstxtsize = sizeof(TranslatorStyledTextStreamHeader); in PrintStxtInfo() local
186 uint8 buffer[max(max(max(kstxtsize, ktxtsize), kstylsize), kStyleSize)]; in PrintStxtInfo()
190 nread = file.Read(buffer, kstxtsize); in PrintStxtInfo()
191 if (nread != static_cast<status_t>(kstxtsize)) { in PrintStxtInfo()
196 memcpy(&stxtheader, buffer, kstxtsize); in PrintStxtInfo()
197 if (swap_data(B_UINT32_TYPE, &stxtheader, kstxtsize, in PrintStxtInfo()
220 if (stxtheader.header.header_size == kstxtsize) in PrintStxtInfo()
224 static_cast<unsigned int>(kstxtsize)); in PrintStxtInfo()
/haiku/src/add-ons/translators/stxt/
H A DSTXTTranslator.cpp295 const ssize_t kstxtsize = sizeof(TranslatorStyledTextStreamHeader); in translate_from_stxt() local
312 if (inSource->Seek(kstxtsize + ktxtsize, SEEK_CUR) != in translate_from_stxt()
313 kstxtsize + ktxtsize) in translate_from_stxt()
707 const ssize_t kstxtsize = sizeof(TranslatorStyledTextStreamHeader); in Identify() local
713 nread = inSource->Read(buffer, kstxtsize); in Identify()
718 if (nread == kstxtsize) { in Identify()
720 memcpy(&header, buffer, kstxtsize); in Identify()
721 if (swap_data(B_UINT32_TYPE, &header, kstxtsize, in Identify()
726 && header.header.header_size == (int32)kstxtsize in Identify()
/haiku/src/add-ons/translators/rtf/
H A Dconvert.cpp670 const ssize_t kstxtsize = sizeof(TranslatorStyledTextStreamHeader); in convert_styled_text_to_rtf() local
677 if (source->Read(&stxtheader, kstxtsize) != kstxtsize) in convert_styled_text_to_rtf()