658 char* checkSumPointer = src+4;
659 int32_t extraBytes = 0;
660 uint32_t sizeToChecksum = sizeToWrite;
671 if (sizeToChecksum%4 != 0)
673 extraBytes = 4 - (sizeToChecksum%4);
674 memset(checkSumPointer+sizeToChecksum, 0, extraBytes);
675 sizeToChecksum += extraBytes;
684 write(src+4, sizeToWrite);
int32_t fCheckOffset
offset to the data pointer to calculate the checksum
bool add(const char *buf, size_t len, bool big_endian=true)