1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Allow direct access to data size table index.

This commit is contained in:
Bartosz Taudul
2017-09-14 01:05:08 +02:00
parent 89dd244693
commit 10b88754d8
3 changed files with 8 additions and 4 deletions
+2 -2
View File
@@ -82,14 +82,14 @@ void View::Worker()
{
auto ev = (QueueItem*)ptr;
Process( *ev );
ptr += QueueDataSize[(uint8_t)ev->hdr.type];
ptr += QueueDataSize[ev->hdr.idx];
}
}
else
{
QueueItem hdr;
if( !sock.Read( &hdr.hdr, sizeof( QueueHeader ), &tv, ShouldExit ) ) goto close;
if( !sock.Read( ((char*)&hdr) + sizeof( QueueHeader ), QueueDataSize[(uint8_t)hdr.hdr.type] - sizeof( QueueHeader ), &tv, ShouldExit ) ) goto close;
if( !sock.Read( ((char*)&hdr) + sizeof( QueueHeader ), QueueDataSize[hdr.hdr.idx] - sizeof( QueueHeader ), &tv, ShouldExit ) ) goto close;
Process( hdr );
}
}