Enable arbitrary package sizes for OCPayloadConvert
Previously OCPayloadConvert would only allocate sizes up to 1024
due to how it was designed. This patch will enable unlimited size,
since it will now recover from a CborErrorOutOfMemory and resize the
buffer, then try again.
This requires tinycbor commit
47a78569c0 (currently HEAD of master in
the github tinycbor library), so you'll likely need to do a git-pull in
the extlibs/tinycbor/tinycbor directory. This commit also adds a
static_assert like functionality for C, and tests for the condition
where tinycbor needs updating.
Change-Id: I6f81d374ca2b68ebaf2f6a8239be58898b247309
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2141
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>