26 TArrayL64::TArrayL64()
34 TArrayL64::TArrayL64(Int_t n)
43 TArrayL64::TArrayL64(Int_t n,
const Long64_t *array)
52 TArrayL64::TArrayL64(
const TArrayL64 &array) : TArray(array)
55 Set(array.fN, array.fArray);
61 TArrayL64 &TArrayL64::operator=(
const TArrayL64 &rhs)
64 Set(rhs.fN, rhs.fArray);
71 TArrayL64::~TArrayL64()
81 void TArrayL64::Adopt(Int_t n, Long64_t *arr)
93 void TArrayL64::AddAt(Long64_t c, Int_t i)
95 if (!BoundsOk(
"TArrayL64::AddAt", i))
return;
105 void TArrayL64::Set(Int_t n)
109 Long64_t *temp = fArray;
111 fArray =
new Long64_t[n];
112 if (n < fN) memcpy(fArray,temp, n*
sizeof(Long64_t));
114 memcpy(fArray,temp,fN*
sizeof(Long64_t));
115 memset(&fArray[fN],0,(n-fN)*
sizeof(Long64_t));
120 if (fN)
delete [] temp;
129 void TArrayL64::Set(Int_t n,
const Long64_t *array)
131 if (fArray && fN != n) {
137 if (array == 0)
return;
138 if (!fArray) fArray =
new Long64_t[fN];
139 memmove(fArray, array, n*
sizeof(Long64_t));
145 void TArrayL64::Streamer(TBuffer &b)
151 b.ReadFastArray(fArray,n);
154 b.WriteFastArray(fArray, fN);