29#ifndef PX_DEFAULT_STREAMS_H
30#define PX_DEFAULT_STREAMS_H
36#include "common/PxPhysXCommonConfig.h"
37#include "foundation/PxIO.h"
38#include "foundation/PxFoundation.h"
40typedef FILE* PxFileHandle;
59 virtual PxU32
write(
const void* src, PxU32 count);
61 virtual PxU32 getSize()
const {
return mSize; }
62 virtual PxU8* getData()
const {
return mData; }
85 virtual PxU32
read(
void* dest, PxU32 count);
87 virtual void seek(PxU32 pos);
88 virtual PxU32
tell()
const;
110 virtual PxU32
write(
const void* src, PxU32 count);
111 virtual bool isValid();
129 virtual PxU32
read(
void* dest, PxU32 count);
130 virtual void seek(PxU32 pos);
131 virtual PxU32
tell()
const;
134 bool isValid()
const;
Abstract base class for an application defined memory allocator that can be used by the Nv library.
Definition PxAllocatorCallback.h:53
default implementation of a file write stream
Definition PxDefaultStreams.h:105
virtual PxU32 write(const void *src, PxU32 count)
write to the stream. The number of bytes written may be less than the number sent.
Definition ExtDefaultStreams.cpp:132
default implementation of a memory write stream
Definition PxDefaultStreams.h:54
virtual PxU32 write(const void *src, PxU32 count)
write to the stream. The number of bytes written may be less than the number sent.
Definition ExtDefaultStreams.cpp:57
Output stream class for I/O.
Definition PxIO.h:114
PX_C_EXPORT PX_FOUNDATION_API physx::PxAllocatorCallback *PX_CALL_CONV PxGetAllocatorCallback()
Get the allocator callback.
Definition FdFoundation.cpp:259
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39