Re: [Nutshell-devel] Basic class information : Byte Arrays
Status: Planning
Brought to you by:
alexandream
From: Alexandre M. <ale...@gm...> - 2006-08-24 17:40:00
|
Answering my own message. damn I hate to forget things. 2006/8/24, Alexandre Moreira <ale...@gm...>: [...] > > ByteArray > public: > const char& operator[](int index) const; > char& operator[](int index); > int getCapacity(); > void copyFrom(const ByteArray& source, int srcIndex, int dstIndex, int size); char * getBackingArray() //returns a pointer to the array being used as back-end. > > private: > char& fetchCharacter(int index); // a wrapper to common functionality shared > // by both [] operators. > ByteArray(char * wrappedData, int capacity); > virtual ~ByteArray(); > protected: > int capacity; > char* data; > -- > [...] |