Skip to content

Commit

Permalink
Update Offset/Size for header fields
Browse files Browse the repository at this point in the history
  • Loading branch information
phaag committed Dec 16, 2023
1 parent 305f1be commit dec1d92
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib/nfxV3.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ typedef struct recordHeaderV3_s {
} recordHeaderV3_t;
#define OFFtype offsetof(recordHeaderV3_t, type)
#define SIZEtype MemberSize(recordHeaderV3_t, type)
#define OFFengineType offsetof(recordHeaderV3_t, engineType)
#define SIZEengineType MemberSize(recordHeaderV3_t, engineType)
#define OFFengineID offsetof(recordHeaderV3_t, engineID)
#define SIZEengineID MemberSize(recordHeaderV3_t, engineID)
#define OFFexporterID offsetof(recordHeaderV3_t, exporterID)
#define SIZEexporterID MemberSize(recordHeaderV3_t, exporterID)

#define V3HeaderRecordSize sizeof(recordHeaderV3_t)
#define AddV3Header(p, h) \
Expand Down

0 comments on commit dec1d92

Please sign in to comment.