Tim-Philipp Müller d790ba9a06 gdppay: optimise payloading of buffers with multiple memories
Add function to calculate a payload CRC across multiple memories
so we don't have to merge buffers with multiple memories just to
calculate the CRC. Also make CRC calculation function static,
since it's not used outside dataprotocol.h and move special-casing
of length = 0 -> CRC = 0 into CRC function (from caller).

Perhaps more importantly, since payload CRC is off by default:
don't map buffer (and possibly merge memories in the process)
if we are not going to use it to calculate a CRC anyway.
2014-12-26 13:44:32 +00:00
..
2014-10-28 21:42:31 +00:00
2014-04-08 12:20:40 +01:00
2014-05-03 19:57:57 +02:00
2014-12-20 12:29:13 -05:00
2014-12-05 14:21:31 +05:30
2014-08-10 12:04:38 +01:00
2014-12-14 12:53:55 +01:00
2014-12-12 00:30:21 +00:00
2014-10-30 15:21:15 +00:00
2014-06-09 10:57:32 +02:00
2013-12-06 17:58:13 -05:00