Lines Matching refs:length

38 mem_tobuffer(isc_buffer_t *target, void *base, unsigned int length);
58 while (source->length > 0) {
60 if (source->length == 1) {
70 if (source->length == 2) {
78 if (source->length == 3) {
87 if (source->length == 4) {
100 if (source->length != 0 && wordlength >= 0 &&
107 if (source->length > 0)
108 isc_region_consume(source, source->length);
140 int length; /*%< Desired length of binary data or -1 */
151 base32_decode_init(base32_decode_ctx_t *ctx, int length, const char base[],
157 ctx->length = length;
247 if (ctx->length >= 0) {
248 if (n > ctx->length)
251 ctx->length -= n;
261 if (ctx->length > 0)
279 isc_buffer_t *target, int length)
286 base32_decode_init(&ctx, length, base, pad, target);
288 while (!ctx.seen_end && (ctx.length != 0)) {
291 if (length > 0)
300 for (i = 0; i < tr->length; i++)
303 if (ctx.length < 0 && !ctx.seen_end)
310 isc_base32_tobuffer(isc_lex_t *lexer, isc_buffer_t *target, int length) {
311 return (base32_tobuffer(lexer, base32, ISC_TRUE, target, length));
315 isc_base32hex_tobuffer(isc_lex_t *lexer, isc_buffer_t *target, int length) {
316 return (base32_tobuffer(lexer, base32hex, ISC_TRUE, target, length));
320 isc_base32hexnp_tobuffer(isc_lex_t *lexer, isc_buffer_t *target, int length) {
321 return (base32_tobuffer(lexer, base32hex, ISC_FALSE, target, length));
365 while (source->length != 0) {
397 if (l > region.length)
406 mem_tobuffer(isc_buffer_t *target, void *base, unsigned int length) {
410 if (length > tr.length)
412 memmove(tr.base, base, length);
413 isc_buffer_add(target, length);