39 const uint8_t* mBegin;
52 return mGood ?
static_cast<uint32_t
>(mEnd - mBegin) : 0;
59 void setup(uint8_t* start, uint8_t* stop)
65 void nocopyRead(uint8_t*& buffer, uint32_t& len)
67 if(len == 0 || mGood ==
false)
73 uint32_t original = len;
74 len =
PxMin(len, size());
75 if(mGood && len != original)
77 buffer =
const_cast<uint8_t*
>(mBegin);
81 virtual bool read(uint8_t* buffer, uint32_t& len)
85 uint32_t original = len;
86 len =
PxMin(len, size());
88 physx::intrinsics::memCopy(buffer, mBegin, len);
91 physx::intrinsics::memZero(buffer + len, original - len);
92 mGood = mGood && len == original;
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
PX_CUDA_CALLABLE PX_FORCE_INLINE T PxMin(T a, T b)
The return value is the lesser of the two specified values.
Definition PxMath.h:88