Lines Matching refs:nCountBytes

58 Ww1PlainText::Ww1PlainText(Ww1Fib& rWwFib, sal_uLong nFilePos, sal_uLong nCountBytes)  in Ww1PlainText()  argument
59 : rFib(rWwFib), ulFilePos(nFilePos), ulCountBytes(nCountBytes), in Ww1PlainText()
113 sal_uInt8 nCountBytes = SVBT8ToByte(p); in ReadName() local
116 if( !nCountBytes ) // default in ReadName()
166 else if( 255 > nCountBytes ) // unused in ReadName()
168 SetName( String( (sal_Char*)p, nCountBytes, RTL_TEXTENCODING_MS_1252 )); in ReadName()
169 p += nCountBytes; in ReadName()
170 DBG_ASSERT(rnCountBytes>=nCountBytes, "Ww1Style"); in ReadName()
171 rnCountBytes = rnCountBytes - nCountBytes; in ReadName()
178 sal_uInt16 nCountBytes = SVBT8ToByte(p); in ReadChpx() local
181 if (nCountBytes != 255 // unused in ReadChpx()
182 && nCountBytes != 0) // default in ReadChpx()
184 if (nCountBytes > sizeof(aChpx)) in ReadChpx()
185 nCountBytes = sizeof(aChpx); in ReadChpx()
186 memcpy( &aChpx, p, nCountBytes ); in ReadChpx()
187 p += nCountBytes; in ReadChpx()
188 DBG_ASSERT(rnCountBytes>=nCountBytes, "Ww1Style"); in ReadChpx()
189 rnCountBytes = rnCountBytes - nCountBytes; in ReadChpx()
196 sal_uInt16 nCountBytes = SVBT8ToByte(p); in ReadPapx() local
199 if (nCountBytes != 255) in ReadPapx()
201 pPapx = new Ww1SprmPapx(p, nCountBytes); in ReadPapx()
202 p += nCountBytes; in ReadPapx()
203 DBG_ASSERT(rnCountBytes>=nCountBytes, "Ww1Style"); in ReadPapx()
204 rnCountBytes = rnCountBytes - nCountBytes; in ReadPapx()
258 sal_uInt16 nCountBytes = SVBT16ToShort(p); in ReadNames() local
260 DBG_ASSERT(rnCountBytes>=nCountBytes, "Ww1StyleSheet"); in ReadNames()
261 rnCountBytes = rnCountBytes - nCountBytes; in ReadNames()
262 nCountBytes = nCountBytes - sizeof(SVBT16); in ReadNames()
264 while (nCountBytes > 0) in ReadNames()
267 aStyles[stc].ReadName(p, nCountBytes, stc); in ReadNames()
270 DBG_ASSERT(nCountBytes==0, "Ww1StyleSheet"); in ReadNames()
276 sal_uInt16 nCountBytes = SVBT16ToShort(p); in ReadChpx() local
278 DBG_ASSERT(rnCountBytes>=nCountBytes, "Ww1StyleSheet"); in ReadChpx()
279 rnCountBytes = rnCountBytes - nCountBytes; in ReadChpx()
280 nCountBytes = nCountBytes - sizeof(SVBT16); in ReadChpx()
282 while (nCountBytes > 0) in ReadChpx()
285 aStyles[stc].ReadChpx(p, nCountBytes); in ReadChpx()
288 DBG_ASSERT(nCountBytes == 0, "Ww1StyleSheet"); in ReadChpx()
294 sal_uInt16 nCountBytes = SVBT16ToShort(p); in ReadPapx() local
296 DBG_ASSERT(rnCountBytes>=nCountBytes, "Ww1StyleSheet"); in ReadPapx()
297 rnCountBytes = rnCountBytes - nCountBytes; in ReadPapx()
298 nCountBytes = nCountBytes - sizeof(SVBT16); in ReadPapx()
300 while (nCountBytes > 0) in ReadPapx()
303 aStyles[stc].ReadPapx(p, nCountBytes); in ReadPapx()
306 DBG_ASSERT(nCountBytes == 0, "Ww1StyleSheet"); in ReadPapx()
332 SVBT16 nCountBytes; in Ww1Fonts() local
333 DBG_ASSERT(rFib.GetFIB().cbSttbfffnGet() > sizeof(nCountBytes), "Ww1Fonts"); in Ww1Fonts()
336 if (rFib.GetStream().Read(nCountBytes, sizeof(nCountBytes)) in Ww1Fonts()
337 == sizeof(nCountBytes)) // Laenge steht hier nochmal in Ww1Fonts()
339 DBG_ASSERT(SVBT16ToShort(nCountBytes) in Ww1Fonts()
343 - sizeof(nCountBytes)]; // Alloziere Font-Array in Ww1Fonts()
346 - sizeof(nCountBytes)) == (sal_uLong)rFib.GetFIB().cbSttbfffnGet() in Ww1Fonts()
347 - sizeof(nCountBytes)) // lese alle Fonts in Ww1Fonts()
351 - sizeof(nCountBytes); // Zaehle, wieviele Fonts enthalten in Ww1Fonts()
429 nCountBytes(_nCountBytes), in Ww1Sprm()
434 if (nCountBytes == 0) in Ww1Sprm()
437 if ((p = new sal_uInt8[nCountBytes]) != NULL) in Ww1Sprm()
439 memcpy(p, x, nCountBytes); in Ww1Sprm()
447 nCountBytes(0), in Ww1Sprm()
456 if ((nCountBytes = SVBT8ToByte(x)) == 255 in Ww1Sprm()
457 || !nCountBytes in Ww1Sprm()
458 || (p = new sal_uInt8[nCountBytes]) != NULL) in Ww1Sprm()
459 if (nCountBytes == 255 in Ww1Sprm()
460 || !nCountBytes in Ww1Sprm()
461 || rStream.Read(p, nCountBytes) == (sal_uLong)nCountBytes) in Ww1Sprm()
474 return nCountBytes; in Size()
479 DBG_ASSERT(nCountBytes==0, "Ww1SingleSprmTab"); in Size()
502 nRet = nRet + nCountBytes; in Size()
512 nRet = nRet + nCountBytes; in Size()
545 if (nCountBytes != 255) // not unused? in ReCalc()
547 sal_uInt16 cbsik = nCountBytes; in ReCalc()
565 cbsik = nCountBytes; in ReCalc()
741 : p(0), nCountBytes(nInCountBytes), iMac(0), nItemSize(nInItemSize), in Ww1Plc()
744 if (!nCountBytes) in Ww1Plc()
750 if ((p = new sal_uInt8[nCountBytes]) != NULL) in Ww1Plc()
752 if (rFib.GetStream().Read(p, nCountBytes) == (sal_uLong)nCountBytes) in Ww1Plc()
755 iMac = (nCountBytes - in Ww1Plc()
758 (sal_uInt16)sizeof(SVBT32) == nCountBytes, "Ww1Plc"); in Ww1Plc()
821 SVBT16 nCountBytes; in Ww1StringList() local
822 DBG_ASSERT(nCb > sizeof(nCountBytes), "Ww1StringList"); in Ww1StringList()
824 if (rSt.Read(nCountBytes, sizeof(nCountBytes)) in Ww1StringList()
825 == sizeof(nCountBytes)) // Laenge steht hier nochmal in Ww1StringList()
827 DBG_ASSERT(SVBT16ToShort(nCountBytes) in Ww1StringList()
830 sal_Char* pA = new sal_Char[nCb - sizeof(nCountBytes) + 1]; in Ww1StringList()
833 if (rSt.Read(pA, nCb - sizeof(nCountBytes)) in Ww1StringList()
834 == (sal_uLong)nCb - sizeof(nCountBytes)) // lese alle in Ww1StringList()
837 long nLeft = nCb - sizeof(nCountBytes); in Ww1StringList()
1022 sal_uInt16 nCountBytes = aFkp[nOffset]; in Fill() local
1024 DBG_ASSERT(nCountBytes <= 511-nOffset, "calc error"); in Fill()
1025 DBG_ASSERT(nCountBytes <= sizeof(aChp), "calc error"); in Fill()
1026 memcpy(&aChp, aFkp+nOffset, nCountBytes); in Fill()