28 #include <Riostream.h> 57 fFile =
new fstream(fileName, ios::binary|ios::out);
59 fFile =
new fstream(fileName, ios::out);
98 return (((x & 0x000000ffU) << 24) | ((x & 0x0000ff00U) << 8) |
99 ((x & 0x00ff0000U) >> 8) | ((x & 0xff000000U) >> 24));
116 if ((size %
sizeof(UInt_t)) != 0)
117 AliFatal(Form(
"Size of the buffer is not multiple of 4 (size = %d) !",size));
120 fFile->write(buffer,size);
124 fFile->write(buffer,size);
126 size /=
sizeof(UInt_t);
134 UInt_t *buf = (UInt_t *)buffer;
135 for (UInt_t i = 0; i < size; i++, buf++) {
136 UInt_t value =
Swap(*buf);
137 memcpy(
fBuffer+i, &value,
sizeof(UInt_t));
140 fFile->write((
const char *)
fBuffer,size*
sizeof(UInt_t));
TString fileName(const char *dir, int runNumber, const char *da, int i, const char *type)
void WriteBuffer(const char *buffer, UInt_t size, Bool_t force=kFALSE)
#define AliFatal(message)
void Seekp(UInt_t position)