瀏覽代碼

StreamWriter: add a PutChar method to write a single char.

Tommy 7 年之前
父節點
當前提交
e549705af0
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      include/assimp/StreamWriter.h

+ 6 - 0
include/assimp/StreamWriter.h

@@ -203,6 +203,12 @@ public:
         Put(n);
     }
 
+    // ---------------------------------------------------------------------
+    /** Write a single character to the stream */
+    void PutChar(char c)    {
+        Put(c);
+    }
+
     // ---------------------------------------------------------------------
     /** Write an aiString to the stream */
     void PutString(const aiString& s)