Lines Matching refs:buffer
261 unsigned char buffer[256]; in convertPfbToPfa() local
269 bEof = ((0 != rInFile.read( buffer, 6, nRead)) || (nRead != 6)); in convertPfbToPfa()
272 unsigned int nType = buffer[ 1 ]; in convertPfbToPfa()
273 unsigned int nBytesToRead = buffer[2] | buffer[3] << 8 | buffer[4] << 16 | buffer[5] << 24; in convertPfbToPfa()
274 if( buffer[0] != 0x80 ) // test for pfb magic number in convertPfbToPfa()
278 if( ! rInFile.read( buffer+6, 9, nRead ) && nRead == 9 && in convertPfbToPfa()
279 ( ! std::strncmp( (char*)buffer, "%!FontType1-", 12 ) || in convertPfbToPfa()
280 ! std::strncmp( (char*)buffer, "%!PS-AdobeFont-", 15 ) ) ) in convertPfbToPfa()
282 if( rOutFile.write( buffer, 15, nWrite ) || nWrite != 15 ) in convertPfbToPfa()
285 ! rInFile.read( buffer, sizeof( buffer ), nRead ) && in convertPfbToPfa()
288 if( rOutFile.write( buffer, nRead, nWrite ) || in convertPfbToPfa()
332 buffer[ nBuffer++ ] = hexDigits[ pBuffer[ i ] >> 4 ]; in convertPfbToPfa()
333 buffer[ nBuffer++ ] = hexDigits[ pBuffer[ i ] & 15 ]; in convertPfbToPfa()
336 buffer[ nBuffer++ ] = '\n'; in convertPfbToPfa()
337 if( rOutFile.write( buffer, nBuffer, nRead ) || nRead != nBuffer ) in convertPfbToPfa()
344 buffer[ nBuffer++ ] = '\n'; in convertPfbToPfa()
345 if( rOutFile.write( buffer, nBuffer, nRead ) || nRead != nBuffer ) in convertPfbToPfa()