gwnavruntime/visualdebug/messages/framedumpblob.h Source File

framedumpblob.h
Go to the documentation of this file.
1 /*
2 * Copyright 2016 Autodesk, Inc. All rights reserved.
3 * Use of this software is subject to the terms of the Autodesk license agreement and any attachments or Appendices thereto provided at the time of installation or download,
4 * or which otherwise accompanies this software in either electronic or hard copy form, or which is signed by you and accepted by Autodesk.
5 */
6 
7 #pragma once
8 
11 
12 namespace Kaim
13 {
14 
15 class MemoryReportBlob
16 {
17  KY_ROOT_BLOB_CLASS(VisualDebugMessage, MemoryReportBlob, 0)
18 public:
19  BlobArray<char> m_text;
20 };
21 inline void SwapEndianness(Endianness::Target e, MemoryReportBlob& self)
22 {
23  SwapEndianness(e, self.m_text);
24 }
25 
26 class MemoryReportBlobBuilder : public BaseBlobBuilder<MemoryReportBlob>
27 {
28  KY_CLASS_WITHOUT_COPY(MemoryReportBlobBuilder)
29 public:
30  MemoryReportBlobBuilder(const char* text, KyUInt32 textSize) : m_text(text), m_textSize(textSize) {}
31 private:
32  virtual void DoBuild() { BLOB_STRING(m_blob->m_text, m_text); }
33  const char* m_text;
34  KyUInt32 m_textSize;
35 };
36 
37 } // namespace Kaim
38 
std::uint32_t KyUInt32
uint32_t
Definition: types.h:29
#define KY_CLASS_WITHOUT_COPY(ClassName)
Define to forbid copy constructor and copy assignment.
Definition: types.h:196
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
#define BLOB_STRING(str, src)
Use this macro only in implementations of BaseBlobBuilder::DoBuild().
Definition: baseblobbuilder.h:166