Lines Matching refs:item
43 SECITEM_AllocItem(PRArenaPool *arena, SECItem *item, unsigned int len)
52 if (item == NULL) {
62 PORT_Assert(item->Data == NULL);
63 result = item;
85 if (item != NULL) {
86 item->Data = NULL;
87 item->Length = 0;
91 SECITEM_FreeItem(result, (item == NULL) ? PR_TRUE : PR_FALSE);
98 SECITEM_ReallocItem(PRArenaPool *arena, SECItem *item, unsigned int oldlen,
101 PORT_Assert(item != NULL);
102 if (item == NULL) {
111 PORT_Assert(item->Data == NULL || item->Length == 0);
116 item->Length = newlen;
118 item->Data = PORT_ArenaAlloc(arena, newlen);
120 item->Data = PORT_Alloc(newlen);
124 item->Data = PORT_ArenaGrow(arena, item->Data, oldlen, newlen);
126 item->Data = PORT_Realloc(item->Data, newlen);
130 if (item->Data == NULL) {
276 const SECItem *item = (const SECItem *)key;
279 PRUint8 *data = (PRUint8 *)item->Data;
283 for( i = 0; i < item->Length; i++ ) {
293 * comparison on the item data. This does not result in