PxDefaultMemoryInputData#

Defined in include/extensions/PxDefaultStreams.h

class PxDefaultMemoryInputData : public PxInputData#

default implementation of a memory read stream

See also

PxInputData

Public Functions

PxDefaultMemoryInputData(const PxU8 *data, PxU64 length)#
virtual PxU64 read(void *dest, PxU64 count)#

read from the stream.

The number of bytes read may be less than the number requested.

Parameters:
  • dest[in] the destination address to which the data will be read

  • count[in] the number of bytes requested

Returns:

the number of bytes read from the stream.

virtual PxU64 getLength() const#

return the length of the input data

Returns:

size in bytes of the input data

virtual void seek(PxU64 pos)#

seek to the given offset from the start of the data.

Parameters:

offset[in] the offset to seek to. If greater than the length of the data, this call is equivalent to seek(length);

virtual PxU64 tell() const#

return the current offset from the start of the data

Returns:

the offset to seek to.