19 return (UInt_t)fMetaType;
27 return (UInt_t)fDataSource;
35 return (UInt_t)fRevision;
57 ULong64_t returnVal = 0;
58 ULong64_t returnMask = 0;
61 for (Short_t idx = 0; idx < length; idx++) {
62 returnVal += ((ULong64_t)variable[idx] << (8 * (length - idx - 1)));
63 returnMask += ((ULong64_t)0xff << 8 * idx);
66 for (Short_t idx = 0; idx < length; idx++) {
67 returnVal += ((ULong64_t)variable[(length - idx - 1)] << (8 * (length - idx - 1)));
68 returnMask += ((ULong64_t)0xff << 8 * idx);
71 return (returnVal & returnMask);
76 memset(&fMetaType, 0,
sizeof(uint8_t) * 1);
77 memset(fFrameSize, 0,
sizeof(uint8_t) * 3);
78 memset(&fDataSource, 0,
sizeof(uint8_t) * 1);
79 memset(fFrameType, 0,
sizeof(uint8_t) * 2);
80 memset(&fRevision, 0,
sizeof(uint8_t) * 1);
87 stream.read((Char_t *)&fMetaType, 1);
88 stream.read((Char_t *)fFrameSize, 3);
89 stream.read((Char_t *)&fDataSource, 1);
90 stream.read((Char_t *)fFrameType, 2);
91 stream.read((Char_t *)&fRevision, 1);
98 cout << showbase << hex;
99 cout <<
" == GETHeaderBase ================================" << endl;
101 cout <<
" - Endianness: " << (
IsLittleEndian() ?
"Little" :
"Big") << endl;
102 cout <<
" - Blobness: " << (
IsBlob() ?
"YES" :
"NO") << endl;
103 cout <<
" - UnitBlock: " << dec <<
GetUnitBlock() <<
" Bytes" << hex << endl;
105 <<
" Blocks = " <<
GetFrameSize() << hex <<
" Bytes)" << endl;
109 cout <<
" =================================================" << endl;