30 Bool_t TArray::OutOfBoundsError(
const char *where, Int_t i)
const
32 ::Error(where,
"index %d out of bounds (size: %d, this: 0x%lx)", i, fN, (Long_t)
this);
41 TArray *TArray::ReadArray(TBuffer &b,
const TClass *clReq)
43 R__ASSERT(b.IsReading());
49 UInt_t startpos = UInt_t(b.Length());
52 TClass *clRef = b.ReadClass(clReq, &tag);
61 a = (TArray *) clRef->New();
63 ::Error(
"TArray::ReadArray",
"could not create object of class %s",
71 b.CheckByteCount(startpos, tag, clRef);
82 void TArray::WriteArray(TBuffer &b,
const TArray *a)
84 R__ASSERT(b.IsWriting());
96 UInt_t cntpos = UInt_t(b.Length());
97 b.SetBufferOffset(Int_t(cntpos+
sizeof(UInt_t)));
99 TClass *cl = a->IsA();
102 ((TArray *)a)->Streamer(b);
105 b.SetByteCount(cntpos);
112 TBuffer &operator<<(TBuffer &buf,
const TArray *obj)
114 TArray::WriteArray(buf, obj);