x
Yes
No
Do you want to visit DriveHQ English website?
Inicio
Características
Precios
Prueba gratuita
Software cliente
Acerca de nosotros
Servidor de archivos
|
Solución de copias de seguridad
|
Servidor FTP
|
Servidor de correo electrónico
|
Alojamiento web
|
Software cliente
Servidor de archivos
Solución de copia de seguridad
Servidor FTP
Servidor de correo electrónico
Alojamiento web
Software cliente
NXU_Streaming.h - Hosted on DriveHQ Cloud IT Platform
Arriba
Subir
Descargar
Compartir
Publicar
Nueva carpeta
Nuevo archivo
Copiar
Cortar
Eliminar
Pegar
Clasificación
Actualizar
Ruta de la carpeta: \\game3dprogramming\materials\GameFactory\GameFactoryDemo\references\NxuStream2\include\NXU_Streaming.h
Girar
Efecto
Propiedad
Historial
#ifndef NXU_STREAMING_H #define NXU_STREAMING_H #include "NxStream.h" #include "NXU_File.h" namespace NXU { class UserStream: public NxStream { public: UserStream(const char *filename, bool load); virtual ~UserStream(); virtual NxU8 readByte()const; virtual NxU16 readWord()const; virtual NxU32 readDword()const; virtual float readFloat()const; virtual double readDouble()const; virtual void readBuffer(void *buffer, NxU32 size)const; virtual NxStream &storeByte(NxU8 b); virtual NxStream &storeWord(NxU16 w); virtual NxStream &storeDword(NxU32 d); virtual NxStream &storeFloat(NxReal f); virtual NxStream &storeDouble(NxF64 f); virtual NxStream &storeBuffer(const void *buffer, NxU32 size); NXU_FILE *fp; }; class MemoryWriteBuffer: public NxStream { public: MemoryWriteBuffer(); virtual ~MemoryWriteBuffer(); void clear(); virtual NxU8 readByte()const { NX_ASSERT(0); return 0; } virtual NxU16 readWord()const { NX_ASSERT(0); return 0; } virtual NxU32 readDword()const { NX_ASSERT(0); return 0; } virtual float readFloat()const { NX_ASSERT(0); return 0.0f; } virtual double readDouble()const { NX_ASSERT(0); return 0.0; } virtual void readBuffer(void *buffer, NxU32 size)const { NX_ASSERT(0); } virtual NxStream &storeByte(NxU8 b); virtual NxStream &storeWord(NxU16 w); virtual NxStream &storeDword(NxU32 d); virtual NxStream &storeFloat(NxReal f); virtual NxStream &storeDouble(NxF64 f); virtual NxStream &storeBuffer(const void *buffer, NxU32 size); NxU32 currentSize; NxU32 maxSize; NxU8 *data; }; class MemoryReadBuffer: public NxStream { public: MemoryReadBuffer(const NxU8 *data); virtual ~MemoryReadBuffer(); virtual NxU8 readByte()const; virtual NxU16 readWord()const; virtual NxU32 readDword()const; virtual float readFloat()const; virtual double readDouble()const; virtual void readBuffer(void *buffer, NxU32 size)const; virtual NxStream &storeByte(NxU8 b) { NX_ASSERT(0); return *this; } virtual NxStream &storeWord(NxU16 w) { NX_ASSERT(0); return *this; } virtual NxStream &storeDword(NxU32 d) { NX_ASSERT(0); return *this; } virtual NxStream &storeFloat(NxReal f) { NX_ASSERT(0); return *this; } virtual NxStream &storeDouble(NxF64 f) { NX_ASSERT(0); return *this; } virtual NxStream &storeBuffer(const void *buffer, NxU32 size) { NX_ASSERT(0); return *this; } mutable const NxU8 *buffer; }; class ImportMemoryWriteBuffer: public NxStream { public: ImportMemoryWriteBuffer(); virtual ~ImportMemoryWriteBuffer(); void clear(); virtual NxU8 readByte()const { NX_ASSERT(0); return 0; } virtual NxU16 readWord()const { NX_ASSERT(0); return 0; } virtual NxU32 readDword()const { NX_ASSERT(0); return 0; } virtual float readFloat()const { NX_ASSERT(0); return 0.0f; } virtual double readDouble()const { NX_ASSERT(0); return 0.0; } virtual void readBuffer(void *buffer, NxU32 size)const { NX_ASSERT(0); } virtual NxStream &storeByte(NxU8 b); virtual NxStream &storeWord(NxU16 w); virtual NxStream &storeDword(NxU32 d); virtual NxStream &storeFloat(NxReal f); virtual NxStream &storeDouble(NxF64 f); virtual NxStream &storeBuffer(const void *buffer, NxU32 size); NxU32 currentSize; NxU32 maxSize; NxU8 *data; }; class ImportMemoryReadBuffer: public NxStream { public: ImportMemoryReadBuffer(const NxU8 *data); virtual ~ImportMemoryReadBuffer(); virtual NxU8 readByte()const; virtual NxU16 readWord()const; virtual NxU32 readDword()const; virtual float readFloat()const; virtual double readDouble()const; virtual void readBuffer(void *buffer, NxU32 size)const; virtual NxStream &storeByte(NxU8 b) { NX_ASSERT(0); return *this; } virtual NxStream &storeWord(NxU16 w) { NX_ASSERT(0); return *this; } virtual NxStream &storeDword(NxU32 d) { NX_ASSERT(0); return *this; } virtual NxStream &storeFloat(NxReal f) { NX_ASSERT(0); return *this; } virtual NxStream &storeDouble(NxF64 f) { NX_ASSERT(0); return *this; } virtual NxStream &storeBuffer(const void *buffer, NxU32 size) { NX_ASSERT(0); return *this; } mutable const NxU8 *buffer; }; }; #endif
NXU_Streaming.h
Dirección de la página
Dirección del archivo
Anterior
17/20
Siguiente
Descargar
( 4 KB )
Comments
Total ratings:
0
Average rating:
No clasificado
of 10
Would you like to comment?
Join now
, or
Logon
if you are already a member.