Lines Matching defs:srcptr
76 * @param srcptr compressed source buffer, must be padded with at least 5 extra bytes
79 static unsigned int mszh_decomp(const unsigned char * srcptr, int srclen, unsigned char * destptr, unsigned int destsize)
83 const unsigned char *srcptr_end = srcptr + srclen;
84 unsigned mask = *srcptr++;
87 while (srcptr < srcptr_end && destptr < destptr_end) {
89 memcpy(destptr, srcptr, 4);
91 srcptr += 4;
93 unsigned ofs = bytestream_get_le16(&srcptr);
110 mask = *srcptr++;
112 if (destptr_end - destptr < 32 || srcptr_end - srcptr < 32) break;
113 memcpy(destptr, srcptr, 32);
115 srcptr += 32;
116 mask = *srcptr++;