VR-Vantage 2.7 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TracyProtocol.hpp
Go to the documentation of this file.
1 #ifndef __TRACYPROTOCOL_HPP__
2 #define __TRACYPROTOCOL_HPP__
3 
4 #include <limits>
5 #include <stdint.h>
6 
7 namespace tracy
8 {
9 
10 constexpr unsigned Lz4CompressBound( unsigned isize ) { return isize + ( isize / 255 ) + 16; }
11 
12 enum : uint32_t { ProtocolVersion = 40 };
13 enum : uint32_t { BroadcastVersion = 1 };
14 
15 using lz4sz_t = uint32_t;
16 
17 enum { TargetFrameSize = 256 * 1024 };
19 static_assert( LZ4Size <= std::numeric_limits<lz4sz_t>::max(), "LZ4Size greater than lz4sz_t" );
20 static_assert( TargetFrameSize * 2 >= 64 * 1024, "Not enough space for LZ4 stream buffer" );
21 
23 static const char HandshakeShibboleth[HandshakeShibbolethSize] = { 'T', 'r', 'a', 'c', 'y', 'P', 'r', 'f' };
24 
26 {
32 };
33 
36 
37 #pragma pack( 1 )
38 
39 // Must increase left query space after handling!
41 {
55 };
56 
58 {
62 };
63 
65 
66 
68 {
74 };
75 
76 
78 {
79  double timerMul;
91  char cpuManufacturer[12];
95 };
96 
97 enum { WelcomeMessageSize = sizeof( WelcomeMessage ) };
98 
99 
101 {
104 };
105 
107 
108 
110 {
114  uint32_t activeTime; // in seconds
116 };
117 
119 
120 #pragma pack()
121 
122 }
123 
124 #endif


Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)