Rename add1/get1 to add8/get8 to be consistent with other member functions.

This commit is contained in:
JoelKatz
2012-02-13 19:28:29 -08:00
parent db8763ef19
commit 9524df694a
3 changed files with 12 additions and 12 deletions

View File

@@ -114,14 +114,14 @@ uint256 Serializer::get256(int offset) const
return ret;
}
int Serializer::add1(unsigned char byte)
int Serializer::add8(unsigned char byte)
{
int ret=mData.size();
mData.push_back(byte);
return ret;
}
bool Serializer::get1(int& byte, int offset) const
bool Serializer::get8(int& byte, int offset) const
{
if(offset>=mData.size()) return false;
byte=mData[offset];