mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-12 10:46:08 +00:00
@@ -4,10 +4,9 @@
|
||||
#include "types.h"
|
||||
|
||||
class COutputStream;
|
||||
|
||||
template < typename T >
|
||||
void coutput_stream_helper(const T& t, COutputStream& out) {
|
||||
t.PutTo(out);
|
||||
}
|
||||
void coutput_stream_helper(const T& t, COutputStream& out);
|
||||
|
||||
class COutputStream {
|
||||
void DoPut(const void* ptr, size_t len);
|
||||
@@ -57,6 +56,11 @@ private:
|
||||
uchar mScratch[96];
|
||||
};
|
||||
|
||||
template < typename T >
|
||||
inline void coutput_stream_helper(const T& t, COutputStream& out) {
|
||||
t.PutTo(out);
|
||||
}
|
||||
|
||||
template <>
|
||||
inline void coutput_stream_helper(const float& t, COutputStream& out) {
|
||||
int tmp = *(int*)&t;
|
||||
|
||||
Reference in New Issue
Block a user