Lines Matching defs:ptr
420 char *ptr;
458 ptr = val.dptr = apr_pcalloc(lockdb->info->pool, val.dsize);
463 *ptr++ = DAV_LOCK_DIRECT; /* Direct lock - lock_discovery struct follows */
464 memcpy(ptr, dp, sizeof(dp->f)); /* Fixed portion of struct */
465 ptr += sizeof(dp->f);
466 memcpy(ptr, dp->locktoken, sizeof(*dp->locktoken));
467 ptr += sizeof(*dp->locktoken);
469 *ptr++ = '\0';
472 memcpy(ptr, dp->owner, strlen(dp->owner) + 1);
473 ptr += strlen(dp->owner) + 1;
476 *ptr++ = '\0';
479 memcpy(ptr, dp->auth_user, strlen(dp->auth_user) + 1);
480 ptr += strlen(dp->auth_user) + 1;
487 *ptr++ = DAV_LOCK_INDIRECT; /* Indirect lock prefix */
488 memcpy(ptr, ip->locktoken, sizeof(*ip->locktoken)); /* Locktoken */
489 ptr += sizeof(*ip->locktoken);
490 memcpy(ptr, &ip->timeout, sizeof(ip->timeout)); /* Expire time */
491 ptr += sizeof(ip->timeout);
492 memcpy(ptr, &ip->key.dsize, sizeof(ip->key.dsize)); /* Size of key */
493 ptr += sizeof(ip->key.dsize);
494 memcpy(ptr, ip->key.dptr, ip->key.dsize); /* Key data */
495 ptr += ip->key.dsize;