Home
last modified time | relevance | path

Searched refs:buffer_ctx (Results 1 – 25 of 30) sorted by relevance

12

/dports/math/librdata/librdata-4a80bf3/src/test/
H A Dtest_buffer_io.c19 rt_buffer_ctx_t *buffer_ctx = (rt_buffer_ctx_t *)io_ctx; in rt_seek_handler() local
24 newpos = buffer_ctx->pos + offset; in rt_seek_handler()
26 newpos = buffer_ctx->buffer->used + offset; in rt_seek_handler()
32 if (newpos > buffer_ctx->buffer->used) in rt_seek_handler()
35 buffer_ctx->pos = newpos; in rt_seek_handler()
40 rt_buffer_ctx_t *buffer_ctx = (rt_buffer_ctx_t *)io_ctx; in rt_read_handler() local
42 ssize_t bytes_left = buffer_ctx->buffer->used - buffer_ctx->pos; in rt_read_handler()
44 memcpy(buf, buffer_ctx->buffer->bytes + buffer_ctx->pos, nbytes); in rt_read_handler()
47 memcpy(buf, buffer_ctx->buffer->bytes + buffer_ctx->pos, bytes_left); in rt_read_handler()
50 buffer_ctx->pos += bytes_copied; in rt_read_handler()
[all …]
H A Dtest_buffer.c30 rt_buffer_ctx_t *buffer_ctx = calloc(1, sizeof(rt_buffer_ctx_t)); in buffer_ctx_init() local
31 buffer_ctx->buffer = buffer; in buffer_ctx_init()
32 return buffer_ctx; in buffer_ctx_init()
35 void buffer_ctx_reset(rt_buffer_ctx_t *buffer_ctx) { in buffer_ctx_reset() argument
36 buffer_reset(buffer_ctx->buffer); in buffer_ctx_reset()
37 buffer_ctx->pos = 0; in buffer_ctx_reset()
H A Dtest_buffer.h19 void buffer_ctx_reset(rt_buffer_ctx_t *buffer_ctx);
H A Dtest_rdata.c179 rt_buffer_ctx_t *buffer_ctx = buffer_ctx_init(buffer); in main() local
187 rdata_set_io_ctx(parser, buffer_ctx); in main()
/dports/comms/tits/tits-1.3.0/
H A Dbuffer.h35 struct buffer_ctx { struct
45 extern int buffer_init_delay(struct buffer_ctx **, int, int); argument
47 extern void buffer_destroy(struct buffer_ctx *);
48 extern ssize_t buffer_fill(struct buffer_ctx *, const char *, size_t);
49 extern ssize_t buffer_drain(struct buffer_ctx *);
H A Dlogger.c81 struct buffer_ctx *lc_bc;
128 struct buffer_ctx *bc; in logger_init()
144 buffer_destroy((struct buffer_ctx *)cc->cc_data); in logger_destroy()
154 return ((int) buffer_drain((struct buffer_ctx *) cc->cc_data)); in logger_event()
165 return (buffer_fill((struct buffer_ctx *) cc->cc_data, buff, len)); in logger_output()
172 return (buffer_length((struct buffer_ctx *) cc->cc_data) != 0); in logger_write_pending()
H A Dbuffer.c49 buffer_init_delay(struct buffer_ctx **bcp, int fd, int txdelay) in buffer_init_delay()
51 struct buffer_ctx *bc; in buffer_init_delay()
76 buffer_destroy(struct buffer_ctx *bc) in buffer_destroy()
83 buffer_write(struct buffer_ctx *bc, const char *src, size_t bytes) in buffer_write()
95 buffer_fill(struct buffer_ctx *bc, const char *src, size_t bytes) in buffer_fill()
191 buffer_drain(struct buffer_ctx *bc) in buffer_drain()
H A Dstdio2pty.c27 static struct buffer_ctx *stdout_buff;
28 static struct buffer_ctx *ptyout_buff;
50 copyfrom(int fd, struct buffer_ctx *bc) in copyfrom()
H A Dlistener.c452 struct buffer_ctx *bc; in full_init()
475 buffer_destroy((struct buffer_ctx *) cc->cc_data); in full_destroy()
482 struct buffer_ctx *bc = cc->cc_data; in full_event()
H A Dtelnet.c76 struct buffer_ctx *tc_buff;
H A Dmasterpty.c86 struct buffer_ctx *mc_bc;
/dports/textproc/libcyaml/libcyaml-1.3.0/src/
H A Dsave.c1451 if (size > (buffer_ctx->len - buffer_ctx->used)) { in cyaml__buffer_handler()
1453 buffer_ctx->config, in cyaml__buffer_handler()
1454 buffer_ctx->data, in cyaml__buffer_handler()
1455 buffer_ctx->len, in cyaml__buffer_handler()
1462 buffer_ctx->data = temp; in cyaml__buffer_handler()
1463 buffer_ctx->len = buffer_ctx->used + size; in cyaml__buffer_handler()
1466 memcpy(buffer_ctx->data + buffer_ctx->used, buffer, size); in cyaml__buffer_handler()
1467 buffer_ctx->used += size; in cyaml__buffer_handler()
1504 err = buffer_ctx.err; in cyaml_save_data()
1512 *output = buffer_ctx.data; in cyaml_save_data()
[all …]
/dports/mail/mailutils/mailutils-3.13/mh/
H A Dmh_alias_lex.l73 struct buffer_ctx { struct
74 struct buffer_ctx *prev; argument
83 static struct buffer_ctx *context_stack; argument
86 static struct buffer_ctx *
89 struct buffer_ctx *ctx; in ctx_lookup()
101 struct buffer_ctx *ctx; in push_source()
200 struct buffer_ctx *ctx; in pop_source()
H A Dmh_alias_lex.c573 struct buffer_ctx { struct
574 struct buffer_ctx *prev; argument
583 static struct buffer_ctx *context_stack; argument
586 static struct buffer_ctx *
589 struct buffer_ctx *ctx; in ctx_lookup()
601 struct buffer_ctx *ctx; in push_source()
700 struct buffer_ctx *ctx; in pop_source()
/dports/multimedia/kodi/xbmc-19.3-Matrix/xbmc/cores/AudioEngine/Sinks/
H A DAESinkXAudio.h48 struct buffer_ctx struct
54 ~buffer_ctx() in ~buffer_ctx() argument
81 struct buffer_ctx *ctx = static_cast<struct buffer_ctx*>(context); in STDMETHOD_()
/dports/net/gnu-radius/radius-1.6.1/lib/
H A Dusers.l199 struct buffer_ctx { struct
200 struct buffer_ctx *prev; argument
207 static struct buffer_ctx *context_stack; argument
209 static struct buffer_ctx *ctx_lookup(ino_t ino);
213 struct buffer_ctx *
216 struct buffer_ctx *ctx; in ctx_lookup()
228 struct buffer_ctx *ctx; in push_source()
292 struct buffer_ctx *ctx; in pop_source()
H A Dusers_lex.c616 struct buffer_ctx { struct
617 struct buffer_ctx *prev; argument
624 static struct buffer_ctx *context_stack; argument
626 static struct buffer_ctx *ctx_lookup(ino_t ino);
630 struct buffer_ctx *
633 struct buffer_ctx *ctx; in ctx_lookup()
645 struct buffer_ctx *ctx; in push_source()
709 struct buffer_ctx *ctx; in pop_source()
/dports/mail/mailutils/mailutils-3.13/libmu_sieve/
H A Dsieve-lex.l112 struct buffer_ctx struct
114 struct buffer_ctx *prev; argument
122 static struct buffer_ctx *context_stack; argument
124 static struct buffer_ctx *ctx_lookup (ino_t ino);
128 struct buffer_ctx *
131 struct buffer_ctx *ctx; in ctx_lookup()
144 struct buffer_ctx *ctx; in push_source()
210 struct buffer_ctx *ctx; in pop_source()
H A Dsieve-lex.c706 struct buffer_ctx struct
708 struct buffer_ctx *prev; argument
716 static struct buffer_ctx *context_stack; argument
718 static struct buffer_ctx *ctx_lookup (ino_t ino);
722 struct buffer_ctx *
725 struct buffer_ctx *ctx; in ctx_lookup()
738 struct buffer_ctx *ctx; in push_source()
804 struct buffer_ctx *ctx; in pop_source()
/dports/www/htdigest/httpd-2.4.6/modules/filters/
H A Dmod_buffer.c44 typedef struct buffer_ctx { struct
50 } buffer_ctx; argument
58 buffer_ctx *ctx = f->ctx; in buffer_out_filter()
193 buffer_ctx *ctx = f->ctx; in buffer_in_filter()
/dports/www/apache24/httpd-2.4.53/modules/filters/
H A Dmod_buffer.c44 typedef struct buffer_ctx { struct
50 } buffer_ctx; argument
59 buffer_ctx *ctx = f->ctx; in buffer_out_filter()
194 buffer_ctx *ctx = f->ctx; in buffer_in_filter()
/dports/net/gnu-dico/dico-2.10/grecs/src/
H A Dpreproc.c44 struct buffer_ctx { struct
45 struct buffer_ctx *prev; /* Pointer to previous context */ argument
54 static struct buffer_ctx *context_stack; argument
228 static struct buffer_ctx *
231 struct buffer_ctx *ctx; in ctx_lookup()
441 struct buffer_ctx *ctx; in push_source()
510 struct buffer_ctx *ctx; in pop_source()
/dports/sysutils/direvent/direvent-5.2/grecs/src/
H A Dpreproc.c44 struct buffer_ctx { struct
45 struct buffer_ctx *prev; /* Pointer to previous context */ argument
54 static struct buffer_ctx *context_stack; argument
228 static struct buffer_ctx *
231 struct buffer_ctx *ctx; in ctx_lookup()
441 struct buffer_ctx *ctx; in push_source()
510 struct buffer_ctx *ctx; in pop_source()
/dports/sysutils/pies/pies-1.5/grecs/src/
H A Dpreproc.c44 struct buffer_ctx { struct
45 struct buffer_ctx *prev; /* Pointer to previous context */ argument
54 static struct buffer_ctx *context_stack; argument
228 static struct buffer_ctx *
231 struct buffer_ctx *ctx; in ctx_lookup()
441 struct buffer_ctx *ctx; in push_source()
510 struct buffer_ctx *ctx; in pop_source()
/dports/sysutils/eclat/eclat-2.0/grecs/src/
H A Dpreproc.c44 struct buffer_ctx { struct
45 struct buffer_ctx *prev; /* Pointer to previous context */ argument
54 static struct buffer_ctx *context_stack; argument
228 static struct buffer_ctx *
231 struct buffer_ctx *ctx; in ctx_lookup()
441 struct buffer_ctx *ctx; in push_source()
510 struct buffer_ctx *ctx; in pop_source()

12