Searched refs:buffer (Results 1 - 25 of 1730) sorted by relevance

1234567891011>>

/freebsd-head/contrib/llvm-project/libcxx/src/
H A Dcharconv.cpp35 append1(char* buffer, T i) argument
37 *buffer = '0' + static_cast<char>(i);
38 return buffer + 1;
43 append2(char* buffer, T i) argument
45 memcpy(buffer, &cDigitsLut[(i)*2], 2);
46 return buffer + 2;
51 append3(char* buffer, T i) argument
53 return append2(append1(buffer, (i) / 100), (i) % 100);
58 append4(char* buffer, T i) argument
60 return append2(append2(buffer, (
65 append2_no_zeros(char* buffer, T v) argument
75 append4_no_zeros(char* buffer, T v) argument
87 append8_no_zeros(char* buffer, T v) argument
102 __u32toa(uint32_t value, char* buffer) argument
123 __u64toa(uint64_t value, char* buffer) argument
[all...]
/freebsd-head/contrib/ldns/
H A Dbuffer.c2 * buffer.c -- generic memory buffer .
13 #include <ldns/buffer.h>
18 ldns_buffer *buffer = LDNS_MALLOC(ldns_buffer); local
20 if (!buffer) {
24 buffer->_data = (uint8_t *) LDNS_XMALLOC(uint8_t, capacity);
25 if (!buffer->_data) {
26 LDNS_FREE(buffer);
30 buffer->_position = 0;
31 buffer
41 ldns_buffer_new_frm_data(ldns_buffer *buffer, const void *data, size_t size) argument
60 ldns_buffer_set_capacity(ldns_buffer *buffer, size_t capacity) argument
79 ldns_buffer_reserve(ldns_buffer *buffer, size_t amount) argument
99 ldns_buffer_printf(ldns_buffer *buffer, const char *format, ...) argument
137 ldns_buffer_free(ldns_buffer *buffer) argument
150 ldns_buffer_export(ldns_buffer *buffer) argument
157 ldns_bgetc(ldns_buffer *buffer) argument
[all...]
H A Dhost2wire.c20 ldns_dname2buffer_wire(ldns_buffer *buffer, const ldns_rdf *name) argument
22 return ldns_dname2buffer_wire_compress(buffer, name, NULL);
26 ldns_dname2buffer_wire_compress(ldns_buffer *buffer, const ldns_rdf *name, ldns_rbtree_t *compression_data) argument
38 if (ldns_buffer_reserve(buffer, ldns_rdf_size(name)))
40 ldns_buffer_write(buffer, ldns_rdf_data(name), ldns_rdf_size(name));
42 return ldns_buffer_status(buffer);
48 if(ldns_buffer_reserve(buffer,1))
50 ldns_buffer_write_u8(buffer, 0);
52 return ldns_buffer_status(buffer);
60 if (ldns_buffer_reserve(buffer,
99 ldns_rdf2buffer_wire(ldns_buffer *buffer, const ldns_rdf *rdf) argument
105 ldns_rdf2buffer_wire_compress(ldns_buffer *buffer, const ldns_rdf *rdf, ldns_rbtree_t *compression_data) argument
120 ldns_rdf2buffer_wire_canonical(ldns_buffer *buffer, const ldns_rdf *rdf) argument
146 ldns_rr_list2buffer_wire(ldns_buffer *buffer,const ldns_rr_list *rr_list) argument
161 ldns_rr2buffer_wire_canonical(ldns_buffer *buffer, const ldns_rr *rr, int section) argument
234 ldns_rr2buffer_wire(ldns_buffer *buffer, const ldns_rr *rr, int section) argument
240 ldns_rr2buffer_wire_compress(ldns_buffer *buffer, const ldns_rr *rr, int section, ldns_rbtree_t *compression_data) argument
284 ldns_rrsig2buffer_wire(ldns_buffer *buffer, const ldns_rr *rr) argument
304 ldns_rr_rdata2buffer_wire(ldns_buffer *buffer, const ldns_rr *rr) argument
319 ldns_hdr2buffer_wire(ldns_buffer *buffer, const ldns_pkt *packet) argument
366 ldns_pkt2buffer_wire(ldns_buffer *buffer, const ldns_pkt *packet) argument
445 ldns_buffer *buffer = ldns_buffer_new(LDNS_MAX_PACKETLEN); local
463 ldns_buffer *buffer = ldns_buffer_new(LDNS_MAX_PACKETLEN); local
481 ldns_buffer *buffer = ldns_buffer_new(LDNS_MAX_PACKETLEN); local
[all...]
/freebsd-head/contrib/unbound/sldns/
H A Dsbuffer.c2 * buffer.c -- generic memory buffer .
21 sldns_buffer *buffer = (sldns_buffer*)malloc(sizeof(sldns_buffer)); local
23 if (!buffer) {
27 buffer->_data = (uint8_t *) malloc(capacity);
28 if (!buffer->_data) {
29 free(buffer);
33 buffer->_position = 0;
34 buffer->_limit = buffer
44 sldns_buffer_new_frm_data(sldns_buffer *buffer, void *data, size_t size) argument
65 sldns_buffer_init_frm_data(sldns_buffer *buffer, void *data, size_t size) argument
74 sldns_buffer_set_capacity(sldns_buffer *buffer, size_t capacity) argument
93 sldns_buffer_reserve(sldns_buffer *buffer, size_t amount) argument
113 sldns_buffer_printf(sldns_buffer *buffer, const char *format, ...) argument
138 sldns_buffer_free(sldns_buffer *buffer) argument
[all...]
H A Dsbuffer.h2 * buffer.h -- generic memory buffer.
9 * The buffer module implements a generic buffer. The API is based on
113 * to the current end of a buffer, read from the current position, and
124 /** The amount of data the buffer can contain */
127 /** The data contained in the buffer */
130 /** If the buffer is fixed it cannot be resized */
133 /** The current state of the buffer. If writing to the buffer fail
147 sldns_buffer_invariant(sldns_buffer *buffer) argument
189 sldns_buffer_clear(sldns_buffer *buffer) argument
207 sldns_buffer_flip(sldns_buffer *buffer) argument
220 sldns_buffer_rewind(sldns_buffer *buffer) argument
233 sldns_buffer_position(sldns_buffer *buffer) argument
245 sldns_buffer_set_position(sldns_buffer *buffer, size_t mark) argument
259 sldns_buffer_skip(sldns_buffer *buffer, ssize_t count) argument
271 sldns_buffer_limit(sldns_buffer *buffer) argument
283 sldns_buffer_set_limit(sldns_buffer *buffer, size_t limit) argument
297 sldns_buffer_capacity(sldns_buffer *buffer) argument
331 sldns_buffer_at(const sldns_buffer *buffer, size_t at) argument
344 sldns_buffer_begin(const sldns_buffer *buffer) argument
356 sldns_buffer_end(sldns_buffer *buffer) argument
367 sldns_buffer_current(sldns_buffer *buffer) argument
380 sldns_buffer_remaining_at(sldns_buffer *buffer, size_t at) argument
394 sldns_buffer_remaining(sldns_buffer *buffer) argument
409 sldns_buffer_available_at(sldns_buffer *buffer, size_t at, size_t count) argument
421 sldns_buffer_available(sldns_buffer *buffer, size_t count) argument
434 sldns_buffer_write_at(sldns_buffer *buffer, size_t at, const void *data, size_t count) argument
449 sldns_buffer_set_at(sldns_buffer *buffer, size_t at, int c, size_t count) argument
463 sldns_buffer_write(sldns_buffer *buffer, const void *data, size_t count) argument
476 sldns_buffer_write_string_at(sldns_buffer *buffer, size_t at, const char *str) argument
487 sldns_buffer_write_string(sldns_buffer *buffer, const char *str) argument
499 sldns_buffer_write_u8_at(sldns_buffer *buffer, size_t at, uint8_t data) argument
511 sldns_buffer_write_u8(sldns_buffer *buffer, uint8_t data) argument
524 sldns_buffer_write_u16_at(sldns_buffer *buffer, size_t at, uint16_t data) argument
536 sldns_buffer_write_u16(sldns_buffer *buffer, uint16_t data) argument
549 sldns_buffer_write_u32_at(sldns_buffer *buffer, size_t at, uint32_t data) argument
562 sldns_buffer_write_u48_at(sldns_buffer *buffer, size_t at, uint64_t data) argument
574 sldns_buffer_write_u32(sldns_buffer *buffer, uint32_t data) argument
586 sldns_buffer_write_u48(sldns_buffer *buffer, uint64_t data) argument
600 sldns_buffer_read_at(sldns_buffer *buffer, size_t at, void *data, size_t count) argument
613 sldns_buffer_read(sldns_buffer *buffer, void *data, size_t count) argument
626 sldns_buffer_read_u8_at(sldns_buffer *buffer, size_t at) argument
638 sldns_buffer_read_u8(sldns_buffer *buffer) argument
652 sldns_buffer_read_u16_at(sldns_buffer *buffer, size_t at) argument
664 sldns_buffer_read_u16(sldns_buffer *buffer) argument
678 sldns_buffer_read_u32_at(sldns_buffer *buffer, size_t at) argument
690 sldns_buffer_read_u32(sldns_buffer *buffer) argument
703 sldns_buffer_status(sldns_buffer *buffer) argument
714 sldns_buffer_status_ok(sldns_buffer *buffer) argument
[all...]
/freebsd-head/contrib/ldns/ldns/
H A Dbuffer.h2 * buffer.h -- generic memory buffer.
9 * The buffer module implements a generic buffer. The API is based on
30 * number of initial bytes in buffer of
36 * \file buffer.h
45 * to the current end of a buffer, read from the current position, and
58 /** The amount of data the buffer can contain */
61 /** The data contained in the buffer */
64 /** If the buffer i
82 ldns_buffer_invariant(const ldns_buffer *buffer) argument
115 ldns_buffer_clear(ldns_buffer *buffer) argument
133 ldns_buffer_flip(ldns_buffer *buffer) argument
146 ldns_buffer_rewind(ldns_buffer *buffer) argument
159 ldns_buffer_position(const ldns_buffer *buffer) argument
171 ldns_buffer_set_position(ldns_buffer *buffer, size_t mark) argument
185 ldns_buffer_skip(ldns_buffer *buffer, ssize_t count) argument
197 ldns_buffer_limit(const ldns_buffer *buffer) argument
209 ldns_buffer_set_limit(ldns_buffer *buffer, size_t limit) argument
223 ldns_buffer_capacity(const ldns_buffer *buffer) argument
257 ldns_buffer_at(const ldns_buffer *buffer, size_t at) argument
270 ldns_buffer_begin(const ldns_buffer *buffer) argument
282 ldns_buffer_end(const ldns_buffer *buffer) argument
293 ldns_buffer_current(const ldns_buffer *buffer) argument
306 ldns_buffer_remaining_at(const ldns_buffer *buffer, size_t at) argument
320 ldns_buffer_remaining(const ldns_buffer *buffer) argument
335 ldns_buffer_available_at(const ldns_buffer *buffer, size_t at, size_t count) argument
347 ldns_buffer_available(const ldns_buffer *buffer, size_t count) argument
360 ldns_buffer_write_at(ldns_buffer *buffer, size_t at, const void *data, size_t count) argument
373 ldns_buffer_write(ldns_buffer *buffer, const void *data, size_t count) argument
386 ldns_buffer_write_string_at(ldns_buffer *buffer, size_t at, const char *str) argument
397 ldns_buffer_write_string(ldns_buffer *buffer, const char *str) argument
409 ldns_buffer_write_u8_at(ldns_buffer *buffer, size_t at, uint8_t data) argument
421 ldns_buffer_write_u8(ldns_buffer *buffer, uint8_t data) argument
434 ldns_buffer_write_u16_at(ldns_buffer *buffer, size_t at, uint16_t data) argument
446 ldns_buffer_write_u16(ldns_buffer *buffer, uint16_t data) argument
459 ldns_buffer_write_u32_at(ldns_buffer *buffer, size_t at, uint32_t data) argument
471 ldns_buffer_write_u32(ldns_buffer *buffer, uint32_t data) argument
485 ldns_buffer_read_at(const ldns_buffer *buffer, size_t at, void *data, size_t count) argument
498 ldns_buffer_read(ldns_buffer *buffer, void *data, size_t count) argument
511 ldns_buffer_read_u8_at(const ldns_buffer *buffer, size_t at) argument
523 ldns_buffer_read_u8(ldns_buffer *buffer) argument
537 ldns_buffer_read_u16_at(ldns_buffer *buffer, size_t at) argument
549 ldns_buffer_read_u16(ldns_buffer *buffer) argument
563 ldns_buffer_read_u32_at(ldns_buffer *buffer, size_t at) argument
575 ldns_buffer_read_u32(ldns_buffer *buffer) argument
588 ldns_buffer_status(const ldns_buffer *buffer) argument
599 ldns_buffer_status_ok(const ldns_buffer *buffer) argument
[all...]
/freebsd-head/crypto/heimdal/lib/gssapi/krb5/
H A Drelease_buffer.c38 gss_buffer_t buffer
42 free (buffer->value);
43 buffer->value = NULL;
44 buffer->length = 0;
/freebsd-head/crypto/heimdal/lib/gssapi/mech/
H A Dgss_release_buffer.c33 gss_buffer_t buffer)
37 if (buffer->value)
38 free(buffer->value);
39 _mg_buffer_zero(buffer);
32 gss_release_buffer(OM_uint32 *minor_status, gss_buffer_t buffer) argument
/freebsd-head/lib/libgssapi/
H A Dgss_release_buffer.c38 gss_buffer_t buffer)
42 if (buffer->value)
43 free(buffer->value);
44 _gss_buffer_zero(buffer);
37 gss_release_buffer(OM_uint32 *minor_status, gss_buffer_t buffer) argument
/freebsd-head/usr.sbin/vidcontrol/
H A Ddecode.h3 int decode(FILE *fd, char *buffer, int len);
/freebsd-head/contrib/ntp/lib/isc/
H A Dbufferlist.c26 #include <isc/buffer.h>
32 isc_buffer_t *buffer; local
38 buffer = ISC_LIST_HEAD(*bl);
39 while (buffer != NULL) {
40 REQUIRE(ISC_BUFFER_VALID(buffer));
41 length += isc_buffer_usedlength(buffer);
42 buffer = ISC_LIST_NEXT(buffer, link);
50 isc_buffer_t *buffer; local
56 buffer
[all...]
/freebsd-head/share/examples/tests/tests/plain/
H A Dprintf_test.c53 char buffer[128]; local
55 if (snprintf(buffer, sizeof(buffer), "%s, %s!", "Hello",
59 if (strcmp(buffer, "Hello, tests!") != 0)
60 errx(EXIT_FAILURE, "Bad formatting: got %s", buffer);
66 char buffer[10]; local
68 if (snprintf(buffer, sizeof(buffer), "0123456789abcdef") != 16)
72 if (strcmp(buffer, "012345678") != 0)
73 errx(EXIT_FAILURE, "Bad formatting: got %s", buffer);
80 char buffer[128]; local
[all...]
/freebsd-head/contrib/ntp/libparse/
H A Dclk_schmid.c102 12, /* binary data buffer */
109 unsigned char *buffer,
116 if ((size != 11) || (buffer[10] != (unsigned char)'\375'))
122 if (buffer[0] > 23 || buffer[1] > 59 || buffer[2] > 59 || buffer[3] > 9) /* Time */
127 if (buffer[4] < 1 || buffer[4] > 31 || buffer[
108 cvt_schmid( unsigned char *buffer, int size, struct format *format, clocktime_t *clock_time, void *local ) argument
[all...]
H A Dclk_wharton.c87 unsigned char *buffer,
97 if (size != 15 || buffer[0] != STX || buffer[14] != ETX
98 || buffer[13] < '0' || buffer[13] > ('0' + 0xf))
101 if (buffer[i] < '0' || buffer[i] > '9')
103 clock_time->second = (buffer[2] - '0') * 10 + buffer[1] - '0';
104 clock_time->minute = (buffer[
86 cvt_wharton_400a( unsigned char *buffer, int size, struct format *format, clocktime_t *clock_time, void *local ) argument
[all...]
/freebsd-head/contrib/gdb/gdb/
H A Dkod-cisco.c33 /* Size of buffer used for remote communication. */
51 char buffer[PBUFSIZ];
70 (*gdb_kod_query) ("oI;", buffer, &bufsiz);
72 strcpy (buffer, "Cisco IOS/Classic/13.4 0.0.0");
76 for (i = 0; count && buffer[i] != '\0'; ++i)
78 if (buffer[i] == ' ')
82 if (buffer[i] == '\0')
84 if (strcmp (&buffer[i], "0.0.0"))
85 error ("Remote returned unknown stub version: %s\n", &buffer[i]);
112 char buffer[PBUFSI
50 char buffer[PBUFSIZ]; local
111 char buffer[PBUFSIZ], command[PBUFSIZ]; local
[all...]
/freebsd-head/contrib/gcc/
H A Dtree-pretty-print.c52 int i; for (i = 0; i<SPACE; i++) pp_space (buffer); } while (0)
54 #define NIY do_niy(buffer,node)
57 (buffer, "%s", TREE_CODE (NODE) == NOP_EXPR ? \
61 static pretty_printer buffer; variable
67 do_niy (pretty_printer *buffer, tree node) argument
71 pp_string (buffer, "<<< Unknown tree: ");
72 pp_string (buffer, tree_code_name[(int) TREE_CODE (node)]);
79 newline_and_indent (buffer, 2);
80 dump_generic_node (buffer, TREE_OPERAND (node, i), 2, 0, false);
84 pp_string (buffer, " >>>\
164 dump_decl_name(pretty_printer *buffer, tree node, int flags) argument
188 dump_function_name(pretty_printer *buffer, tree node) argument
200 dump_function_declaration(pretty_printer *buffer, tree node, int spc, int flags) argument
233 dump_array_domain(pretty_printer *buffer, tree domain, int spc, int flags) argument
264 dump_omp_clause(pretty_printer *buffer, tree clause, int spc, int flags) argument
388 dump_omp_clauses(pretty_printer *buffer, tree clause, int spc, int flags) argument
411 dump_generic_node(pretty_printer *buffer, tree node, int spc, int flags, bool is_stmt) argument
1932 print_declaration(pretty_printer *buffer, tree t, int spc, int flags) argument
2025 print_struct_decl(pretty_printer *buffer, tree node, int spc, int flags) argument
2404 print_call_name(pretty_printer *buffer, tree node) argument
2470 pretty_print_string(pretty_printer *buffer, const char *str) argument
2567 newline_and_indent(pretty_printer *buffer, int spc) argument
2574 dump_vops(pretty_printer *buffer, tree stmt, int spc, int flags) argument
2633 dump_bb_header(pretty_printer *buffer, basic_block bb, int indent, int flags) argument
2704 dump_bb_end(pretty_printer *buffer, basic_block bb, int indent, int flags) argument
2730 dump_phi_nodes(pretty_printer *buffer, basic_block bb, int indent, int flags) argument
2752 pp_cfg_jump(pretty_printer *buffer, basic_block bb) argument
2774 dump_implicit_edges(pretty_printer *buffer, basic_block bb, int indent, int flags) argument
2822 dump_generic_bb_buff(pretty_printer *buffer, basic_block bb, int indent, int flags) argument
[all...]
/freebsd-head/sys/kgssapi/
H A Dgss_release_buffer.c42 gss_release_buffer(OM_uint32 *minor_status, gss_buffer_t buffer) argument
46 if (buffer->value) {
47 free(buffer->value, M_GSSAPI);
49 buffer->length = 0;
50 buffer->value = NULL;
/freebsd-head/contrib/ncurses/ncurses/tinfo/
H A Dcomp_expand.c63 static char *buffer; local
78 if (buffer != 0) {
79 FreeAndNull(buffer);
85 if (buffer == 0 || need > length) {
86 if ((buffer = typeRealloc(char, length = need, buffer)) == 0)
94 buffer[bufp++] = *str++;
106 _nc_SPRINTF(buffer + bufp, _nc_SLIMIT(P_LIMIT(bufp))
108 bufp += (int) strlen(buffer + bufp);
111 buffer[buf
[all...]
/freebsd-head/share/examples/tests/tests/tap/
H A Dprintf_test.c93 char buffer[128]; local
95 if (snprintf(buffer, sizeof(buffer), "%s, %s!", "Hello",
101 if (strcmp(buffer, "Hello, tests!") != 0)
102 fail("Bad formatting: got %s", buffer);
111 char buffer[10]; local
113 if (snprintf(buffer, sizeof(buffer), "0123456789abcdef") != 16) {
121 if (strcmp(buffer, "012345678") != 0)
122 fail("Bad formatting: got %s", buffer);
131 char buffer[128]; local
[all...]
/freebsd-head/contrib/xz/src/liblzma/simple/
H A Dsparc.c20 uint8_t *buffer, size_t size)
25 if ((buffer[i] == 0x40 && (buffer[i + 1] & 0xC0) == 0x00)
26 || (buffer[i] == 0x7F
27 && (buffer[i + 1] & 0xC0) == 0xC0)) {
29 uint32_t src = ((uint32_t)buffer[i + 0] << 24)
30 | ((uint32_t)buffer[i + 1] << 16)
31 | ((uint32_t)buffer[i + 2] << 8)
32 | ((uint32_t)buffer[i + 3]);
48 buffer[
18 sparc_code(void *simple lzma_attribute((__unused__)), uint32_t now_pos, bool is_encoder, uint8_t *buffer, size_t size) argument
[all...]
/freebsd-head/contrib/opie/libopie/
H A Dunlock.c48 char buffer[128], *c, *c2; variable
59 if ((i = read(fh, buffer, sizeof(buffer))) < 0)
62 buffer[sizeof(buffer) - 1] = 0;
63 buffer[i - 1] = 0;
65 if (!(c = strchr(buffer, '\n')))
75 if (!(pid = atoi(buffer)))
/freebsd-head/share/examples/tests/tests/atf/
H A Dprintf_test.c66 char buffer[128]; local
71 ATF_REQUIRE(snprintf(buffer, sizeof(buffer), "%s, %s!",
77 ATF_CHECK_STREQ("Hello, tests!", buffer);
100 "fit the provided buffer.");
104 char buffer[10]; local
115 if (snprintf(buffer, sizeof(buffer), "0123456789abcdef") != 16)
119 ATF_CHECK(strcmp(buffer, "012345678") == 0);
/freebsd-head/contrib/ntp/sntp/libevent/include/event2/
H A Dbuffer_compat.h34 Obsolete and deprecated versions of the functions in buffer.h: provided
40 Obsolete alias for evbuffer_readln(buffer, NULL, EOL_STYLE_ANY).
46 @param buffer the evbuffer to read from
51 char *evbuffer_readline(struct evbuffer *buffer);
60 list of callbacks, or add or remove data from the buffer. It may not
63 If a callback adds or removes data from the buffer or from another
64 buffer, this can cause a recursive invocation of your callback or
68 @param buffer the buffer whose size has changed
69 @param old_len the previous length of the buffer
[all...]
/freebsd-head/contrib/libevent/include/event2/
H A Dbuffer_compat.h34 Obsolete and deprecated versions of the functions in buffer.h: provided
40 Obsolete alias for evbuffer_readln(buffer, NULL, EVBUFFER_EOL_ANY).
46 @param buffer the evbuffer to read from
51 char *evbuffer_readline(struct evbuffer *buffer);
60 list of callbacks, or add or remove data from the buffer. It may not
63 If a callback adds or removes data from the buffer or from another
64 buffer, this can cause a recursive invocation of your callback or
68 @param buffer the buffer whose size has changed
69 @param old_len the previous length of the buffer
[all...]
/freebsd-head/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_stacktrace_printer.h21 // stack frame "frame_no" and appends it to the "buffer". "format" is a
49 void RenderFrame(InternalScopedString *buffer, const char *format, int frame_no,
54 void RenderSourceLocation(InternalScopedString *buffer, const char *file,
58 void RenderModuleLocation(InternalScopedString *buffer, const char *module,
66 void RenderData(InternalScopedString *buffer, const char *format,

Completed in 329 milliseconds

1234567891011>>