Home
last modified time | relevance | path

Searched refs:ptr (Results 1 - 25 of 52) sorted by relevance

123

/Couchbase_C_Client_v3.0/contrib/gtest-1.8.1/include/gtest/internal/
H A Dgtest-linked_ptr.h108 void join(linked_ptr_internal const* ptr)
112 linked_ptr_internal const* p = ptr; in GTEST_LOCK_EXCLUDED_()
113 while (p->next_ != ptr) { in GTEST_LOCK_EXCLUDED_()
120 next_ = ptr; in GTEST_LOCK_EXCLUDED_()
152 explicit linked_ptr(T* ptr = NULL) { capture(ptr); } in linked_ptr()
156 template <typename U> linked_ptr(linked_ptr<U> const& ptr) { copy(&ptr); } in linked_ptr() argument
157 linked_ptr(linked_ptr const& ptr) { // NOLINT in linked_ptr() argument
158 assert(&ptr ! in linked_ptr()
163 operator =(linked_ptr<U> const& ptr) operator =() argument
169 operator =(linked_ptr const& ptr) operator =() argument
208 capture(T* ptr) capture() argument
213 copy(linked_ptr<U> const* ptr) copy() argument
223 operator ==(T* ptr, const linked_ptr<T>& x) operator ==() argument
228 operator !=(T* ptr, const linked_ptr<T>& x) operator !=() argument
236 make_linked_ptr(T* ptr) make_linked_ptr() argument
[all...]
/Couchbase_C_Client_v3.0/contrib/cJSON/
H A DcJSON.c50 static void (*cJSON_free)(void *ptr) = free;
290 const char *ptr = str + 1; in parse_string() local
298 while (*ptr != '\"' && (unsigned char)*ptr > 31 && ++len) in parse_string()
299 if (*ptr++ == '\\') in parse_string()
300 ptr++; /* Skip escaped quotes. */ in parse_string()
306 ptr = str + 1; in parse_string()
308 while (*ptr != '\"' && (unsigned char)*ptr > 31) { in parse_string()
309 if (*ptr ! in parse_string()
369 const char *ptr; print_string_ptr() local
584 char *out = 0, *ptr, *ret; print_array() local
698 char *out = 0, *ptr, *ret, *str; print_object() local
[all...]
/Couchbase_C_Client_v3.0/example/analytics/
H A DcJSON.c50 static void (*cJSON_free)(void *ptr) = free;
290 const char *ptr = str + 1; in parse_string() local
298 while (*ptr != '\"' && (unsigned char)*ptr > 31 && ++len) in parse_string()
299 if (*ptr++ == '\\') in parse_string()
300 ptr++; /* Skip escaped quotes. */ in parse_string()
306 ptr = str + 1; in parse_string()
308 while (*ptr != '\"' && (unsigned char)*ptr > 31) { in parse_string()
309 if (*ptr ! in parse_string()
369 const char *ptr; print_string_ptr() local
584 char *out = 0, *ptr, *ret; print_array() local
698 char *out = 0, *ptr, *ret, *str; print_object() local
[all...]
/Couchbase_C_Client_v3.0/example/analytics-deferred/
H A DcJSON.c50 static void (*cJSON_free)(void *ptr) = free;
290 const char *ptr = str + 1; in parse_string() local
298 while (*ptr != '\"' && (unsigned char)*ptr > 31 && ++len) in parse_string()
299 if (*ptr++ == '\\') in parse_string()
300 ptr++; /* Skip escaped quotes. */ in parse_string()
306 ptr = str + 1; in parse_string()
308 while (*ptr != '\"' && (unsigned char)*ptr > 31) { in parse_string()
309 if (*ptr ! in parse_string()
369 const char *ptr; print_string_ptr() local
584 char *out = 0, *ptr, *ret; print_array() local
698 char *out = 0, *ptr, *ret, *str; print_object() local
[all...]
/Couchbase_C_Client_v3.0/example/analytics-ingest/
H A DcJSON.c50 static void (*cJSON_free)(void *ptr) = free;
290 const char *ptr = str + 1; in parse_string() local
298 while (*ptr != '\"' && (unsigned char)*ptr > 31 && ++len) in parse_string()
299 if (*ptr++ == '\\') in parse_string()
300 ptr++; /* Skip escaped quotes. */ in parse_string()
306 ptr = str + 1; in parse_string()
308 while (*ptr != '\"' && (unsigned char)*ptr > 31) { in parse_string()
309 if (*ptr ! in parse_string()
369 const char *ptr; print_string_ptr() local
584 char *out = 0, *ptr, *ret; print_array() local
698 char *out = 0, *ptr, *ret, *str; print_object() local
[all...]
/Couchbase_C_Client_v3.0/example/minimal/
H A DcJSON.c50 static void (*cJSON_free)(void *ptr) = free;
290 const char *ptr = str + 1; in parse_string() local
298 while (*ptr != '\"' && (unsigned char)*ptr > 31 && ++len) in parse_string()
299 if (*ptr++ == '\\') in parse_string()
300 ptr++; /* Skip escaped quotes. */ in parse_string()
306 ptr = str + 1; in parse_string()
308 while (*ptr != '\"' && (unsigned char)*ptr > 31) { in parse_string()
309 if (*ptr ! in parse_string()
369 const char *ptr; print_string_ptr() local
584 char *out = 0, *ptr, *ret; print_array() local
698 char *out = 0, *ptr, *ret, *str; print_object() local
[all...]
/Couchbase_C_Client_v3.0/example/tracing/
H A DcJSON.c50 static void (*cJSON_free)(void *ptr) = free;
290 const char *ptr = str + 1; in parse_string() local
298 while (*ptr != '\"' && (unsigned char)*ptr > 31 && ++len) in parse_string()
299 if (*ptr++ == '\\') in parse_string()
300 ptr++; /* Skip escaped quotes. */ in parse_string()
306 ptr = str + 1; in parse_string()
308 while (*ptr != '\"' && (unsigned char)*ptr > 31) { in parse_string()
309 if (*ptr ! in parse_string()
369 const char *ptr; print_string_ptr() local
584 char *out = 0, *ptr, *ret; print_array() local
698 char *out = 0, *ptr, *ret, *str; print_object() local
[all...]
H A Dtracing.c263 zipkin_payload *ptr = state->root; in zipkin_flush() local
265 while (ptr) { in zipkin_flush()
266 zipkin_payload *tmp = ptr; in zipkin_flush()
267 loop_send(sock, ptr->data, strlen(ptr->data)); in zipkin_flush()
268 ptr = ptr->next; in zipkin_flush()
269 if (ptr) { in zipkin_flush()
H A Dviews.c263 zipkin_payload *ptr = state->root; in zipkin_flush() local
265 while (ptr) { in zipkin_flush()
266 zipkin_payload *tmp = ptr; in zipkin_flush()
267 loop_send(sock, ptr->data, strlen(ptr->data)); in zipkin_flush()
268 ptr = ptr->next; in zipkin_flush()
269 if (ptr) { in zipkin_flush()
/Couchbase_C_Client_v3.0/contrib/snappy/
H A Dsnappy-stubs-internal.h513 // Attempts to parse a varint32 from a prefix of the bytes in [ptr,limit-1].
518 static const char* Parse32WithLimit(const char* ptr, const char* limit,
521 // REQUIRES "ptr" points to a buffer of length sufficient to hold "v".
522 // EFFECTS Encodes "v" into "ptr" and returns a pointer to the
524 static char* Encode32(char* ptr, uint32 v);
533 const unsigned char* ptr = reinterpret_cast<const unsigned char*>(p); in Parse32WithLimit() local
536 if (ptr >= limit) return NULL; in Parse32WithLimit()
537 b = *(ptr++); result = b & 127; if (b < 128) goto done; in Parse32WithLimit()
538 if (ptr >= limit) return NULL; in Parse32WithLimit()
539 b = *(ptr in Parse32WithLimit()
554 unsigned char* ptr = reinterpret_cast<unsigned char*>(sptr); Encode32() local
[all...]
/Couchbase_C_Client_v3.0/src/strcodecs/
H A Dbase64.cc130 char *ptr = static_cast<char *>(calloc(len, sizeof(char))); in lcb_base64_encode2() local
131 int rc = lcb_base64_encode(src, nsrc, ptr, len); in lcb_base64_encode2()
133 *ndst = strlen(ptr); in lcb_base64_encode2()
134 *dst = ptr; in lcb_base64_encode2()
136 free(ptr); in lcb_base64_encode2()
145 char *ptr; in lcb_base64_encode_iov() local
155 ptr = static_cast<char *>(calloc(len, sizeof(char))); in lcb_base64_encode_iov()
160 auto *out = (std::uint8_t *)ptr; in lcb_base64_encode_iov()
195 *ndst = strlen(ptr); in lcb_base64_encode_iov()
196 *dst = ptr; in lcb_base64_encode_iov()
306 char *ptr = static_cast<char *>(calloc(len, sizeof(char))); lcb_base64_decode2() local
[all...]
/Couchbase_C_Client_v3.0/src/mc/
H A Dcompress.cc38 ptr = static_cast<const char *>(buf->iov[idx].iov_base); in FragBufSource()
50 *len = buf->iov[idx].iov_len - static_cast<size_t>((ptr - static_cast<const char *>(buf->iov[idx].iov_base)));
51 return ptr;
57 size_t spanleft = buf->iov[idx].iov_len - (ptr - static_cast<const char *>(buf->iov[idx].iov_base));
59 ptr += n;
65 ptr = nullptr;
70 ptr = static_cast<const char *>(buf->iov[++idx].iov_base);
73 ptr = nullptr;
80 const char *ptr; member in FragBufSource
/Couchbase_C_Client_v3.0/src/
H A Dlist.c82 lcb_list_t *ptr = list->next; in lcb_list_contains() local
84 while (ptr != list && ptr != item) { in lcb_list_contains()
85 ptr = ptr->next; in lcb_list_contains()
88 return (ptr == item) ? 1 : 0; in lcb_list_contains()
H A Dhandler.cc450 const char *ptr = response->ext(); in H_exists() local
451 memcpy(&resp.deleted, ptr, sizeof(uint32_t)); in H_exists()
453 ptr += sizeof(uint32_t); in H_exists()
454 memcpy(&resp.flags, ptr, sizeof(uint32_t)); in H_exists()
456 ptr += sizeof(uint32_t); in H_exists()
457 memcpy(&resp.expiry, ptr, sizeof(uint32_t)); in H_exists()
459 ptr += sizeof(uint32_t); in H_exists()
460 memcpy(&resp.seqno, ptr, sizeof(uint64_t)); in H_exists()
711 const char *end, *ptr; in H_observe() local
726 ptr in H_observe()
918 const char *ptr = response->ext(); H_collections_get_cid() local
[all...]
H A Dpacketutils.h147 const char *end, *ptr; in duration() local
148 ptr = ffext(); in duration()
149 end = ptr + ffextlen(); in duration()
151 for (; ptr < end;) { in duration()
152 uint8_t control = *ptr; in duration()
155 ptr++; in duration()
158 memcpy(&encoded, ptr, sizeof(uint16_t)); in duration()
162 ptr += len; in duration()
H A Dsllist.h63 #define SLLIST_ITEM(ptr, type, member) ((type *)(void *)((char *)(ptr)-offsetof(type, member)))
H A Dlist.h101 #define LCB_LIST_ITEM(ptr, type, member) ((type *)(void *)((char *)(ptr)-offsetof(type, member)))
/Couchbase_C_Client_v3.0/tests/mocksupport/
H A Dtimeout.c40 char *ptr = getenv("LCB_MAX_TEST_DURATION"); in setup_test_timeout_handler() local
42 if (ptr != NULL) { in setup_test_timeout_handler()
43 duration = atoi(ptr); in setup_test_timeout_handler()
/Couchbase_C_Client_v3.0/contrib/cbsasl/src/scram-sha/
H A Dscram_utils.cc174 const char *ptr = serverin; in parse_server_challenge() local
185 ptr = static_cast<const char *>(memchr(ptr, ',', remainlen)); in parse_server_challenge()
186 if (ptr != nullptr) { in parse_server_challenge()
191 // | +-- ptr in parse_server_challenge()
193 attrlen = ptr - oldptr; in parse_server_challenge()
194 ptr++; // to skip the comma in parse_server_challenge()
243 oldptr = ptr; in parse_server_challenge()
244 } while (ptr != nullptr); in parse_server_challenge()
/Couchbase_C_Client_v3.0/contrib/cbsasl/src/cram-md5/
H A Dmd5.c74 (*(MD5_u32plus *)&ptr[(n) * 4])
80 (MD5_u32plus)ptr[(n) * 4] | \
81 ((MD5_u32plus)ptr[(n) * 4 + 1] << 8) | \
82 ((MD5_u32plus)ptr[(n) * 4 + 2] << 16) | \
83 ((MD5_u32plus)ptr[(n) * 4 + 3] << 24))
94 unsigned char *ptr; in body() local
98 ptr = data; in body()
188 ptr += 64; in body()
196 return ptr; in body()
/Couchbase_C_Client_v3.0/tests/basic/
H A Dt_packet.cc68 char *ptr = pkt; in get() local
70 memcpy(ptr, msg.bytes, sizeof(msg.bytes)); in get()
71 ptr += sizeof(msg.bytes); in get()
72 memcpy(ptr, key.c_str(), (unsigned long)key.size()); in get()
73 ptr += key.size(); in get()
74 memcpy(ptr, value.c_str(), (unsigned long)value.size()); in get()
/Couchbase_C_Client_v3.0/tests/iotests/
H A Dt_regression.cc80 void *ptr = &callbackCounter; in TEST_F() local
83 EXPECT_EQ(LCB_SUCCESS, lcb_get(instance, ptr, getCmd1)); in TEST_F()
87 EXPECT_EQ(LCB_SUCCESS, lcb_stats(instance, ptr, statCmd)); in TEST_F()
91 EXPECT_EQ(LCB_SUCCESS, lcb_get(instance, ptr, getCmd1)); in TEST_F()
96 EXPECT_EQ(LCB_SUCCESS, lcb_stats(instance, ptr, statCmd)); in TEST_F()
99 EXPECT_EQ(LCB_SUCCESS, lcb_stats(instance, ptr, statCmd)); in TEST_F()
/Couchbase_C_Client_v3.0/src/operations/
H A Dobserve.cc81 const char *ptr = SPAN_BUFFER(&pkt->u_value.single); in handle_observe_callback() local
82 const char *end = ptr + pkt->u_value.single.size; in handle_observe_callback()
83 while (ptr < end) { in handle_observe_callback()
88 ptr += 2; in handle_observe_callback()
89 memcpy(&nkey, ptr, sizeof(nkey)); in handle_observe_callback()
91 ptr += 2; in handle_observe_callback()
93 cur.ctx.key.assign(ptr, nkey); in handle_observe_callback()
97 ptr += nkey; in handle_observe_callback()
/Couchbase_C_Client_v3.0/src/lcbio/
H A Dtimer-cxx.h79 Timer(lcbio_pTABLE iot, T *ptr) : SimpleTimer(iot, ptr, cb) {} in Timer() argument
/Couchbase_C_Client_v3.0/tests/mc/
H A Dmctest.h128 void setCookie(void *ptr) in setCookie()
130 pkt->u_rdata.reqdata.cookie = ptr; in setCookie()

Completed in 69 milliseconds

123