|
@@ -65,7 +65,7 @@ namespace Assimp {
|
|
* stream is to be determined at runtime.
|
|
* stream is to be determined at runtime.
|
|
*/
|
|
*/
|
|
// --------------------------------------------------------------------------------------------
|
|
// --------------------------------------------------------------------------------------------
|
|
-template <bool SwapEndianess = false, bool RuntimeSwitch = false>
|
|
|
|
|
|
+template <bool SwapEndianness = false, bool RuntimeSwitch = false>
|
|
class StreamWriter {
|
|
class StreamWriter {
|
|
enum {
|
|
enum {
|
|
INITIAL_CAPACITY = 1024
|
|
INITIAL_CAPACITY = 1024
|
|
@@ -82,7 +82,7 @@ public:
|
|
continues at the current position of the stream cursor.
|
|
continues at the current position of the stream cursor.
|
|
* @param le If @c RuntimeSwitch is true: specifies whether the
|
|
* @param le If @c RuntimeSwitch is true: specifies whether the
|
|
* stream is in little endian byte order. Otherwise the
|
|
* stream is in little endian byte order. Otherwise the
|
|
- * endianness information is defined by the @c SwapEndianess
|
|
|
|
|
|
+ * endianness information is defined by the @c SwapEndianness
|
|
* template parameter and this parameter is meaningless. */
|
|
* template parameter and this parameter is meaningless. */
|
|
StreamWriter(std::shared_ptr<IOStream> stream, bool le = false)
|
|
StreamWriter(std::shared_ptr<IOStream> stream, bool le = false)
|
|
: stream(stream)
|
|
: stream(stream)
|
|
@@ -260,7 +260,7 @@ public:
|
|
/** Generic write method. ByteSwap::Swap(T*) *must* be defined */
|
|
/** Generic write method. ByteSwap::Swap(T*) *must* be defined */
|
|
template <typename T>
|
|
template <typename T>
|
|
void Put(T f) {
|
|
void Put(T f) {
|
|
- Intern :: Getter<SwapEndianess,T,RuntimeSwitch>() (&f, le);
|
|
|
|
|
|
+ Intern :: Getter<SwapEndianness,T,RuntimeSwitch>() (&f, le);
|
|
|
|
|
|
if (cursor + sizeof(T) >= buffer.size()) {
|
|
if (cursor + sizeof(T) >= buffer.size()) {
|
|
buffer.resize(cursor + sizeof(T));
|
|
buffer.resize(cursor + sizeof(T));
|