Fixes the following issues:
plugins/networklayer_udp.c(174): style (unsignedLessThanZero): Checking if unsigned variable 'length' is less than zero.
plugins/networklayer_tcp.c(291): style (unreadVariable): Variable 'layer' is assigned a value that is never used.
src/server/ua_services_attribute.c(13): style (variableScope): The scope of the variable 'c' can be reduced.
src/server/ua_server_worker.c(552): style (unreadVariable): Variable 'mlw' is assigned a value that is never used.
src/server/ua_services_view.c(262): style (unsignedLessThanZero): Checking if unsigned variable 'referencesSize' is less than zero.
src/server/ua_services_view.c(273): style (unsignedLessThanZero): Checking if unsigned variable 'referencesSize' is less than zero.
src/ua_types.c(544): error (memleak): Memory leak: new
src/ua_types.c(547): error (memleak): Memory leak: new
src/ua_types_encoding_binary.c(278): style (duplicateExpression): Same expression on both sides of '/'.
src/ua_types_encoding_binary.c(311): style (duplicateExpression): Same expression on both sides of '/'.
src/ua_types_encoding_binary.c(49): error (arrayIndexOutOfBounds): Array 'buf[4]' accessed at index 4, which is out of bounds.
src/ua_types_encoding_binary.c(49): error (arrayIndexOutOfBounds): Array 'buf[4]' accessed at index 5, which is out of bounds.
src/ua_types_encoding_binary.c(50): error (arrayIndexOutOfBounds): Array 'buf[4]' accessed at index 6, which is out of bounds.
src/ua_types_encoding_binary.c(50): error (arrayIndexOutOfBounds): Array 'buf[4]' accessed at index 7, which is out of bounds.
src/ua_types_encoding_binary.c(326): style (redundantCondition): Redundant condition: If decoded >= 9218868437227405313, the comparison decoded <= 9223372036854775807 is always true.
src/ua_types_encoding_binary.c(262): style (clarifyCalculation): Clarify calculation precedence for '&' and '?'.
src/ua_types_encoding_binary.c(276): style (duplicateExpression): Same expression on both sides of '!='.
src/ua_types_encoding_binary.c(278): style (duplicateExpression): Same expression on both sides of '!='.
src/ua_types_encoding_binary.c(309): style (duplicateExpression): Same expression on both sides of '!='.
src/ua_types_encoding_binary.c(311): style (duplicateExpression): Same expression on both sides of '!='.
Fix cppcheck warnings
Fixes the following warnings:
plugins/networklayer_udp.c(202): style (knownConditionTrueFalse): Condition 'j==0' is always false
src/server/ua_services_nodemanagement.c(826): style (redundantAssignment): Variable 'resultsSize' is reassigned a value before the old one has been used.
* changed signature of encoding functions -> new callback interface, **dst to allow buffer changing in callback
* changed signature of callback: removed not needed parameters
* added first implementation for send-chunk-callback function. Some fields need to be filled (messagetype etc)
* added UA_SecureChannel_sendChunk, added enumeration for Message type, added request type
* added function call to encode function
* some clean up, reworked enumerations
* some trivial fixes @FlorianPalm
* changed string encoding function to split up long srings
* merging...
* added missing file
* added variable for chunking.
* added observing used chunks
* little fix in string_encodeBinary
* changed size of chunk count in connection config and increased array size (2000) to test chunking on arrays (stolen from @Stasik0 chunking_longjmp branch)
* changes in connection parameters
* added demo (server_chunking) for chunking
* removed demo configuration
* changed connection send buffer allocation (remoteConf.recvBufferSize to localConf.sendBufferSize)
* changed allocation size of send/recv buffer
* renaming
* added proposal for chunk abort
* fixing array encoding, using array encoding for string encoding, further minor fixes
* removed accidently added file
* fixing typo in demo
* fixing server_chunking (config structure)
* new callback
* simplify chunking
* remove unnecessary changes against master
* fixed compile warning
* fixed errors to get chunking to work again. started unit test for chunking
* chunking should now also work with normal arrays in addition to long strings
(still, there is a mem leak in the unit test)
* added chunked array example
* fixed array encoding problem (don't increase current source buffer pointer if encoding has failed)
* some unit tests for chunking, checking encoding of an array, tnx @FlorianPalm
* added unit test for chunked string
* changed data types to prevent warnings
* removed mem leak in string test
* re-inserted assert for clang
* cosmetics on server_chunking
* corrected cosmetics
* added abort message (chunking)
* removed memleak (still mem problem)
* fixed message size (array encoding works again)
* string encoding works again
test for chunk count and message size (local config is used)
* added evaluation of retvals to prevent encoding on NULL buffer
* removed debug printfs
testing: localConf -> remoteConf
* fixed stateless extension
* split out a separate chunking unit test
* remove the chunking example; as long as the unit test works, end users won't need to see it
* remove some cosmetic changes
* some cosmetic changes
* reverted connection settings
* changed connection settings within the server_chunking example
* cosmetic changes to the chunked encoding
* fix amalgamation build
* cleanup of encoding with chunking
* revert a a change to calloc in ua_types.c
* allow chunking in the standard config
* fix subscriptions with chunking
* use normal array encoding in variants when possible
* fix handling of old_pos pointers for chunking