11 #ifndef EVIO_6_0_FILEHEADER_H
12 #define EVIO_6_0_FILEHEADER_H
150 uint32_t fileNumber = 1;
152 uint64_t userRegister = 0L;
154 uint64_t trailerPosition = 0L;
156 uint32_t userIntFirst = 0;
158 uint32_t userIntSecond = 0;
163 uint32_t entries = 0;
165 uint32_t bitInfo = 0;
171 uint32_t userHeaderLength = 0;
173 uint32_t userHeaderLengthWords = 0;
175 uint32_t indexLength = 0;
183 uint32_t headerVersion = 6;
190 uint32_t userHeaderLengthPadding = 0;
211 void decodeBitInfoWord(uint32_t word);
212 void setUserHeaderLengthPadding(uint32_t padding);
247 uint32_t
setBitInfo(
bool haveFirst,
bool haveDictionary,
bool haveTrailerWithIndex);
249 bool hasFirst,
bool trailerWithIndex,
250 uint32_t headerType = 1);
285 void writeHeader(std::shared_ptr<ByteBuffer> & buf,
size_t off = 0);
286 void readHeader(ByteBuffer & buffer,
size_t offset = 0);
287 void readHeader(std::shared_ptr<ByteBuffer> & buffer,
size_t offset = 0);
295 #endif //EVIO_6_0_FILEHEADER_H
Numerical values associated with endian byte order.
Definition: ByteOrder.h:53
static const ByteOrder ENDIAN_LOCAL
Local host's byte order.
Definition: ByteOrder.h:61