Lines Matching refs:dataBuf
1082 static inline const GuardedCopy* fromData(const void* dataBuf) {
1083 return reinterpret_cast<const GuardedCopy*>(actualBuffer(dataBuf));
1125 static void* destroy(void* dataBuf) {
1126 const GuardedCopy* pExtra = GuardedCopy::fromData(dataBuf);
1129 debugFree(dataBuf, len);
1137 * The caller has already checked that "dataBuf" is non-NULL.
1139 static bool check(const void* dataBuf, bool modOkay) {
1141 const u1* fullBuf = actualBuffer(dataBuf);
1142 const GuardedCopy* pExtra = GuardedCopy::fromData(dataBuf);
1154 buf[3], buf[2], buf[1], buf[0], dataBuf); /* assume little endian */
1197 adler = adler32(adler, (const Bytef*)dataBuf, len);
1200 pExtra->adler, adler, dataBuf);
1218 static void debugFree(void* dataBuf, size_t len) {
1219 u1* fullBuf = actualBuffer(dataBuf);
1232 static const u1* actualBuffer(const void* dataBuf) {
1233 return reinterpret_cast<const u1*>(dataBuf) - kGuardLen / 2;
1236 static u1* actualBuffer(void* dataBuf) {
1237 return reinterpret_cast<u1*>(dataBuf) - kGuardLen / 2;
1288 static void* releaseGuardedPACopy(JNIEnv* env, jarray jarr, void* dataBuf, int mode) {
1292 if (!GuardedCopy::check(dataBuf, true)) {
1299 size_t len = GuardedCopy::fromData(dataBuf)->originalLen;
1300 memcpy(arrObj->contents, dataBuf, len);
1305 result = (u1*) GuardedCopy::destroy(dataBuf);
1307 result = (u1*) (void*) GuardedCopy::fromData(dataBuf)->originalPtr;