minor optimization

This commit is contained in:
Matej Sekoranja
2011-09-02 11:50:31 +02:00
parent 7250d621a2
commit d862b770d9

View File

@@ -35,7 +35,10 @@ namespace epics {
else if(s<254)
buffer->putByte(s);
else
buffer->putByte(-2)->putInt(s); // (byte)-2 + size
{
buffer->putByte(-2);
buffer->putInt(s); // (byte)-2 + size
}
}
int SerializeHelper::readSize(ByteBuffer* buffer,