Lines Matching refs:loc
258 int OPENSSL_sk_insert(OPENSSL_STACK *st, const void *data, int loc) in OPENSSL_sk_insert() argument
272 if ((loc >= st->num) || (loc < 0)) { in OPENSSL_sk_insert()
275 memmove(&st->data[loc + 1], &st->data[loc], in OPENSSL_sk_insert()
276 sizeof(st->data[0]) * (st->num - loc)); in OPENSSL_sk_insert()
277 st->data[loc] = data; in OPENSSL_sk_insert()
284 static ossl_inline void *internal_delete(OPENSSL_STACK *st, int loc) in internal_delete() argument
286 const void *ret = st->data[loc]; in internal_delete()
288 if (loc != st->num - 1) in internal_delete()
289 memmove(&st->data[loc], &st->data[loc + 1], in internal_delete()
290 sizeof(st->data[0]) * (st->num - loc - 1)); in internal_delete()
309 void *OPENSSL_sk_delete(OPENSSL_STACK *st, int loc) in OPENSSL_sk_delete() argument
311 if (st == NULL || loc < 0 || loc >= st->num) in OPENSSL_sk_delete()
314 return internal_delete(st, loc); in OPENSSL_sk_delete()