StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
l3BankUtils.h
1 #ifndef L3_BANKUTILS_H
2 #define L3_BANKUTILS_H
3 
4 #ifndef TRG_VERSION
5 #define TRG_VERSION 0x32
6 #endif
7 
8 #include "daqFormats.h"
9 
10 void *offlen2ptr(void *base, struct offlen ol);
11 void *offlen2ptr(void *base, struct offlen ol, char *type);
12 
13 void *validate(void * ptr, char *type);
14 bool validateBank(void * ptr, char *type);
15 
16 // Get the size of a bank in bytes (NOT dwords);
17 int bankSize(bankHeader bh);
18 
19 #endif