7 |
|
//-------------------------------------------------------------------------------------------------- |
8 |
|
void mithep::ProcIDRef::Streamer(TBuffer &b) |
9 |
|
{ |
10 |
< |
// Stream all objects in the array to or from the I/O buffer. |
10 |
> |
// Custom streamer for the process id. |
11 |
|
|
12 |
|
if (b.IsReading()) { |
13 |
– |
//UInt_t sv, cv; |
14 |
– |
//b.ReadVersion(&sv, &cv); |
15 |
– |
//TObject::Streamer(b); |
13 |
|
UShort_t pidf; |
14 |
|
b >> pidf; |
15 |
|
pidf += b.GetPidOffset(); |
16 |
|
fProcID = b.ReadProcessID(pidf); |
20 |
– |
//b.CheckByteCount(sv, cv, ProcIDRef::IsA()); |
17 |
|
} else { /*writing*/ |
22 |
– |
//UInt_t cv; |
23 |
– |
//cv = b.WriteVersion(ProcIDRef::IsA(), kTRUE); |
24 |
– |
//TObject::Streamer(b); |
18 |
|
UShort_t pidf; |
19 |
|
pidf = b.WriteProcessID(fProcID); |
20 |
|
b << pidf; |
28 |
– |
//b.SetByteCount(cv, kTRUE); |
21 |
|
} |
22 |
|
} |