/************************************************************************* * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. ************************************************************************/ #ifndef NPKIT_STRUCT_H_ #define NPKIT_STRUCT_H_ #include #pragma pack(push, 1) union NpKitEvent { uint64_t bits[2]; struct { uint64_t type : 8; uint32_t size : 32; uint64_t rsvd : 24; uint64_t timestamp; } fields; }; struct NpKitEventCollectContext { NpKitEvent* event_buffer; uint64_t event_buffer_head; }; #pragma pack(pop) #endif