52DEFINE_PVD_TYPE_NAME_MAP(profile::PxProfileMemoryEventBuffer, "_debugger_", "PxProfileMemoryEventBuffer")
100 TStreamType& mBuffer;
105 template <
typename TDataType>
106 void write(
const TDataType& type)
108 mBuffer.write(
reinterpret_cast<const uint8_t*
>(&type),
sizeof(TDataType));
110 template <
typename TDataType>
111 void write(
const TDataType* type, uint32_t count)
113 mBuffer.write(
reinterpret_cast<const uint8_t*
>(type), count *
sizeof(TDataType));
118 uint32_t amount =
static_cast<uint32_t
>(data.size());
120 write(data.begin(), amount);
124 uint32_t amount =
static_cast<uint32_t
>(data.size());
126 write(data.begin(), amount);
128 template <
typename TDataType>
131 uint32_t amount =
static_cast<uint32_t
>(data.size());
133 for(uint32_t idx = 0; idx < amount; ++idx)
135 TDataType& dtype(
const_cast<TDataType&
>(data[idx]));
136 dtype.serialize(*
this);
140 virtual void streamify(uint16_t& val)
144 virtual void streamify(uint8_t& val)
148 virtual void streamify(uint32_t& val)
152 virtual void streamify(
float& val)
156 virtual void streamify(uint64_t& val)
165 streamify(val.string);
168 virtual void streamify(String& val)
171 String temp = nonNull(val);
173 len =
static_cast<uint32_t
>(strlen(temp) + 1);
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
Used to store a text for debug rendering. Doesn't own 'string' array.
Definition PxRenderBuffer.h:115