Fix missing entry in vtables

This commit is contained in:
GHOSCHT 2022-02-04 14:03:34 +01:00
parent 0326e1e36e
commit 259e74a658
No known key found for this signature in database
GPG key ID: A35BD466B8871994
2 changed files with 17 additions and 5 deletions

View file

@ -16,12 +16,12 @@ int Communicator::getBufferSize()
return this->bufferSize;
}
int Communicator::calculateMessageOutSize(int numberOfValues)
__SIZE_TYPE__ Communicator::calculateMessageOutSize(__SIZE_TYPE__ numberOfValues)
{
return numberOfValues + (numberOfValues - 1) + 1;
}
void Communicator::parseIDs(int *values, int numberOfValues, char *output)
void Communicator::parseIDs(int *values, __SIZE_TYPE__ numberOfValues, char *output)
{
__SIZE_TYPE__ outputSize = calculateMessageOutSize(numberOfValues);
__SIZE_TYPE__ outputCharPointer = 0;
@ -34,3 +34,15 @@ void Communicator::parseIDs(int *values, int numberOfValues, char *output)
output[outputCharPointer++] = ',';
}
}
void Communicator::sendMessage(int *values, __SIZE_TYPE__ numberOfValues)
{
}
void Communicator::sendMessage(char *message)
{
}
char *Communicator::receiveMessage()
{
return "";
}

View file

@ -6,11 +6,11 @@ private:
public:
Communicator(__SIZE_TYPE__ bufferSize);
virtual void sendMessage(int *values, int numberOfValues);
virtual void sendMessage(int *values, __SIZE_TYPE__ numberOfValues);
virtual void sendMessage(char *message);
virtual char *receiveMessage();
char *getBuffer();
int getBufferSize();
void parseIDs(int *values, int numberOfValues, char *out);
int calculateMessageOutSize(int numberOfValues);
void parseIDs(int *values, __SIZE_TYPE__ numberOfValues, char *out);
__SIZE_TYPE__ calculateMessageOutSize(__SIZE_TYPE__ numberOfValues);
};