98 tobuf(buffer, nchars);
100 for (
Int_t i = 0; i < nchars; i++) buffer[i] = data[i];
115 char *data =
Init(nchars, nchars);
117 for (
Int_t i = 0; i < nchars; i++)
frombuf(buffer, &data[i]);
131 void TStringLong::Streamer(
TBuffer &b)
140 for (
int i = 0; i < nwh; i++) b >> data[i];
145 for (
int i = 0; i < nwh; i++) b << data[i];
A zero length substring is legal.
ClassImp(TStringLong) TStringLong
constructor
void frombuf(char *&buf, Bool_t *x)
ATTENTION: this class is obsolete.
Buffer base class used for serializing objects.
virtual void ReadBuffer(char *&buffer)
Read this string from the buffer.
char * Init(Ssiz_t capacity, Ssiz_t nchar)
Private member function returning an empty string representation of size capacity and containing ncha...
void tobuf(char *&buf, Bool_t x)
virtual void FillBuffer(char *&buffer) const
Fill buffer.
void Clobber(Ssiz_t nc)
Clear string and make sure it has a capacity of nc.
virtual ~TStringLong()
destructor
virtual Int_t Sizeof() const
Return the sizeof the string.