- Getting ready for Blender 2.65 and Python 3.3.0 with universal Unicode according to PEP 393

- Allow opening of non-latin filenames on Windows, by using the non-standard _wfopen(), meaning that the IfcSpfStream no longer relies on a std::istream but a FILE* descriptor
This commit is contained in:
Thomas Krijnen
2012-12-31 11:47:46 +00:00
parent 6064ab0fa4
commit 71b5cd12a8
6 changed files with 51 additions and 96 deletions
+3 -3
View File
@@ -34,9 +34,9 @@
// loads a file on disk into multiple chunks, has been disabled.
// It proved to be an inefficient way of working with large files,
// as often these did not facilitate to be parsed in a sequential
// manner efficiently, to enable the paging functionality uncomment
// manner efficiently. To enable the paging functionality uncomment
// the following statement.
//const int BUF_SIZE = (128 * 1024 * 1024);
// #define BUF_SIZE (8 * 1024 * 1024)
namespace IfcParse {
/// The IfcSpfStream class represents a ISO 10303-21 IFC-SPF file in memory.
@@ -48,7 +48,7 @@ namespace IfcParse {
/// detrimental for the performance of the parser.
class IfcSpfStream {
private:
std::ifstream stream;
FILE* stream;
char* buffer;
unsigned int ptr;
unsigned int len;