diff options
author | 2018-02-16 17:46:22 +0100 | |
---|---|---|
committer | 2018-02-16 17:46:22 +0100 | |
commit | b10235eea331f607bfa1bdb8dc44c9dadd32eb36 (patch) | |
tree | 15561ce88435043d3229f89bd1f0f07fc912dd91 /Input | |
parent | aff4155325a95f0e1dce85426c18592b22062cfa (diff) |
update viper to new libicnet version
Change-Id: I45e469b716399b1a40049acf4fd94da57dc61a22
Signed-off-by: Angelo Mantellini <angelo.mantellini@irt-systemx.fr>
Diffstat (limited to 'Input')
-rw-r--r-- | Input/ICNConnectionConsumerApi.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Input/ICNConnectionConsumerApi.cpp b/Input/ICNConnectionConsumerApi.cpp index 84e210cb..15475d5f 100644 --- a/Input/ICNConnectionConsumerApi.cpp +++ b/Input/ICNConnectionConsumerApi.cpp @@ -133,20 +133,20 @@ int ICNConnectionConsumerApi::Read(uint8_t *data, size_t len) this->res = true; this->dataPos = 0; } - if (response.size() - this->dataPos > (int)len) + if (response.getPayload().size() - this->dataPos > (int)len) { - memcpy(data, (char*)response.data() + this->dataPos, len); + memcpy(data, (char*)response.getPayload().data() + this->dataPos, len); this->dataPos += len; return len; } else { - memcpy(data, (char*)response.data() + this->dataPos, response.size() - this->dataPos); - int length = response.size() - this->dataPos; + memcpy(data, (char*)response.getPayload().data() + this->dataPos, response.getPayload().size() - this->dataPos); + int length = response.getPayload().size() - this->dataPos; if (length == 0) { this->res = false; } - this->dataPos = response.size(); + this->dataPos = response.getPayload().size(); return length; } } |