67 virtual void flush (
void) = 0;
74 void writeU64BE (
U64 v) {
U8 b[8]; b[0] = (
U8)(v >> 56); b[1] = (
U8)(v >> 48); b[2] = (
U8)(v >> 40); b[3] = (
U8)(v >> 32); b[4] = (
U8)(v >> 24); b[5] = (
U8)(v >> 16); b[6] = (
U8)(v >> 8); b[7] = (
U8)v;
write(b,
sizeof(b)); }
75 void writeU64LE (
U64 v) {
U8 b[8]; b[7] = (
U8)(v >> 56); b[6] = (
U8)(v >> 48); b[5] = (
U8)(v >> 40); b[4] = (
U8)(v >> 32); b[3] = (
U8)(v >> 24); b[2] = (
U8)(v >> 16); b[1] = (
U8)(v >> 8); b[0] = (
U8)v;
write(b,
sizeof(b)); }
87 char*
readLine (
bool combineWithBackslash =
false,
bool normalizeWhitespace =
false);
114 void writef (
const char* fmt, ...);
115 void writefv (
const char* fmt, va_list args);
116 virtual void flush (
void);
121 void addValid (
int size);
122 void flushInternal (
void);
155 void reset (
void) { m_ptr =
NULL; m_size = 0; m_ofs = 0; }
178 virtual void flush (
void);
259 for (
int i = 0; i <
len; i++)
266 template <
class T>
OutputStream& operator<<(OutputStream& s, const Array<T>&
v)
269 for (
int i = 0; i <
v.getSize(); i++)
281 for (
int i = 0; i <
len; i++)
302 for (
int i = 0; i <
L; i++)
309 template <
class T,
int L,
class S>
OutputStream& operator<<(OutputStream& s, const VectorBase<T, L, S>&
v)
311 for (
int i = 0; i <
L; i++)
320 for (
int i = 0; i <
L *
L; i++)
327 template <
class T,
int L,
class S>
OutputStream& operator<<(OutputStream& s, const MatrixBase<T, L, S>&
v)
329 for (
int i = 0; i <
L *
L; i++)
FW_CUDA_FUNC const T * getPtr(void) const
virtual ~OutputStream(void)
virtual ~Serializable(void)
BufferedOutputStream(OutputStream &stream, int bufferSize=64<< 10, bool writeOnLF=false, bool emulateCR=false)
CUdevice int ordinal char int CUdevice dev CUdevprop CUdevice dev CUcontext ctx CUcontext ctx CUcontext pctx CUmodule const void image CUmodule const void fatCubin CUfunction CUmodule const char name void p CUfunction unsigned int bytes CUtexref pTexRef CUtexref CUarray unsigned int Flags CUtexref int CUaddress_mode am CUtexref unsigned int Flags CUaddress_mode CUtexref int dim CUarray_format int CUtexref hTexRef CUfunction unsigned int numbytes CUfunction int float value CUfunction int CUtexref hTexRef CUfunction int int grid_height CUevent unsigned int Flags CUevent hEvent CUevent hEvent CUstream unsigned int Flags CUstream hStream GLuint bufferobj unsigned int CUdevice dev CUdeviceptr unsigned int CUmodule const char name CUdeviceptr unsigned int bytesize CUdeviceptr dptr void unsigned int bytesize void CUdeviceptr unsigned int ByteCount CUarray unsigned int CUdeviceptr unsigned int ByteCount CUarray unsigned int const void unsigned int ByteCount CUarray unsigned int CUarray unsigned int unsigned int ByteCount void CUarray unsigned int unsigned int CUstream hStream const CUDA_MEMCPY2D pCopy CUdeviceptr const void unsigned int CUstream hStream const CUDA_MEMCPY2D CUstream hStream CUdeviceptr unsigned char unsigned int N CUdeviceptr unsigned int unsigned int N CUdeviceptr unsigned int unsigned short unsigned int unsigned int Height CUarray const CUDA_ARRAY_DESCRIPTOR pAllocateArray CUarray const CUDA_ARRAY3D_DESCRIPTOR pAllocateArray unsigned int CUtexref CUdeviceptr unsigned int bytes CUcontext unsigned int CUdevice device GLenum texture GLenum GLuint buffer GLenum GLuint renderbuffer GLenum GLsizeiptr const GLvoid * data
virtual void write(const void *ptr, int size)
virtual void write(const void *ptr, int size)=0
S32 getNumBytes(void) const
S32 getNumBytesWritten(void) const
virtual void writeToStream(OutputStream &s) const =0
CUdevice int ordinal char int CUdevice dev CUdevprop CUdevice dev CUcontext ctx CUcontext ctx CUcontext pctx CUmodule const void image CUmodule const void fatCubin CUfunction CUmodule const char name void p CUfunction unsigned int bytes CUtexref pTexRef CUtexref CUarray unsigned int Flags CUtexref int CUaddress_mode am CUtexref unsigned int Flags CUaddress_mode CUtexref int dim CUarray_format int CUtexref hTexRef CUfunction unsigned int numbytes CUfunction int float value CUfunction int CUtexref hTexRef CUfunction int int grid_height CUevent unsigned int Flags CUevent hEvent CUevent hEvent CUstream unsigned int Flags CUstream hStream GLuint bufferobj unsigned int CUdevice dev CUdeviceptr unsigned int CUmodule const char name CUdeviceptr unsigned int bytesize CUdeviceptr dptr void unsigned int bytesize void CUdeviceptr unsigned int ByteCount CUarray unsigned int CUdeviceptr unsigned int ByteCount CUarray unsigned int const void unsigned int ByteCount CUarray unsigned int CUarray unsigned int unsigned int ByteCount void CUarray unsigned int unsigned int CUstream hStream const CUDA_MEMCPY2D pCopy CUdeviceptr const void unsigned int CUstream hStream const CUDA_MEMCPY2D CUstream hStream CUdeviceptr unsigned char unsigned int N CUdeviceptr unsigned int unsigned int N CUdeviceptr unsigned int unsigned short unsigned int unsigned int Height CUarray const CUDA_ARRAY_DESCRIPTOR pAllocateArray CUarray const CUDA_ARRAY3D_DESCRIPTOR pAllocateArray unsigned int CUtexref CUdeviceptr unsigned int bytes CUcontext unsigned int CUdevice device GLenum texture GLenum GLuint buffer GLenum GLuint renderbuffer GLenum GLsizeiptr const GLvoid GLenum usage GLuint shader GLenum type GLsizei const GLuint framebuffers GLsizei const GLuint renderbuffers GLuint v
FW_CUDA_FUNC F64 bitsToDouble(U64 a)
Array< U8 > & getData(void)
virtual void flush(void)=0
virtual void readFromStream(InputStream &s)=0
int getLength(void) const
CUdevice int ordinal char int len
void setCapacity(S numElements)
FW_CUDA_FUNC U64 doubleToBits(F64 a)
FW_CUDA_FUNC S operator>>(const T &a, const VectorBase< T, L, S > &b)
virtual ~MemoryOutputStream(void)
FW_CUDA_FUNC S operator<<(const T &a, const VectorBase< T, L, S > &b)
MemoryOutputStream(int capacity=0)
virtual void write(const void *ptr, int size)
virtual ~BufferedOutputStream(void)
void writefv(const char *fmt, va_list args)
void writef(const char *fmt,...)
const T * getPtr(S idx=0) const
CUdevice int ordinal char int CUdevice dev CUdevprop CUdevice dev CUcontext ctx CUcontext ctx CUcontext pctx CUmodule const void image CUmodule const void fatCubin CUfunction CUmodule const char name void p CUfunction unsigned int bytes CUtexref pTexRef CUtexref CUarray unsigned int Flags CUtexref int CUaddress_mode am CUtexref unsigned int Flags CUaddress_mode CUtexref int dim CUarray_format int CUtexref hTexRef CUfunction unsigned int numbytes CUfunction int float value CUfunction int CUtexref hTexRef CUfunction int int grid_height CUevent unsigned int Flags CUevent hEvent CUevent hEvent CUstream unsigned int Flags CUstream hStream GLuint bufferobj unsigned int CUdevice dev CUdeviceptr unsigned int CUmodule const char name CUdeviceptr unsigned int bytesize CUdeviceptr dptr void unsigned int bytesize void CUdeviceptr unsigned int ByteCount CUarray unsigned int CUdeviceptr unsigned int ByteCount CUarray unsigned int const void unsigned int ByteCount CUarray unsigned int CUarray unsigned int unsigned int ByteCount void CUarray unsigned int unsigned int CUstream hStream const CUDA_MEMCPY2D pCopy CUdeviceptr const void unsigned int CUstream hStream const CUDA_MEMCPY2D CUstream hStream CUdeviceptr unsigned char unsigned int N CUdeviceptr unsigned int unsigned int N CUdeviceptr unsigned int unsigned short unsigned int unsigned int Height CUarray const CUDA_ARRAY_DESCRIPTOR pAllocateArray CUarray const CUDA_ARRAY3D_DESCRIPTOR pAllocateArray unsigned int CUtexref CUdeviceptr unsigned int bytes CUcontext unsigned int CUdevice device GLenum texture GLenum GLuint buffer GLenum GLuint renderbuffer GLenum GLsizeiptr size
const Array< U8 > & getData(void) const