Lines Matching refs:next

43  *   begins at base and continues to the octet immediately preceding next.
44 * If next == base or mybuf == NULL, then the asn1buf represents an empty
56 * next >= base
57 * next <= bound+2 (i.e. next should be able to step just past the bound,
59 * to being crossed by next.))
93 (*buf)->next = NULL;
101 buf->next = buf->base = code->data;
109 if (buf->next > buf->bound + 1) return ASN1_OVERRUN;
110 subbuf->base = subbuf->next = buf->next;
112 if (length > (size_t)(buf->bound + 1 - buf->next)) return ASN1_OVERRUN;
128 buf->next = subbuf->bound + 1;
135 buf->next = subbuf->next;
149 if (length <= (size_t)(buf->bound - buf->next + 1))
150 buf->next += length;
155 if (buf->bound - buf->next + 1 <= 0)
160 if (t.length <= (size_t)(buf->bound - buf->next + 1))
161 buf->next += t.length;
193 *(buf->next) = (char)o;
194 (buf->next)++;
208 for (length=1; length<=len; length++,(buf->next)++)
209 *(buf->next) = (s[len-length]);
217 if (buf->next > buf->bound) return ASN1_OVERRUN;
218 *o = (asn1_octet)(*((buf->next)++));
227 if (buf->next > buf->bound + 1) return ASN1_OVERRUN;
228 if (len > (size_t)(buf->bound + 1 - buf->next)) return ASN1_OVERRUN;
237 (*s)[i] = (asn1_octet)(buf->next)[i];
238 buf->next += len;
247 if (buf->next > buf->bound + 1) return ASN1_OVERRUN;
248 if (len > (size_t)(buf->bound + 1 - buf->next)) return ASN1_OVERRUN;
256 (*s)[i] = (char)(buf->next)[i];
257 buf->next += len;
266 remain = buf->bound - buf->next +1;
271 if (indef && remain >= 2 && !*(buf->next) && !*(buf->next + 1))
378 else return buf->bound - buf->next + 1;
400 next_offset = buf->next - buf->base;
414 buf->next = (buf->base) + next_offset;
422 return buf->next - buf->base;