Searched refs:buf (Results 1 – 6 of 6) sorted by relevance
/tinycbor-2.7.6/examples/ |
D | simplereader.c | 17 uint8_t *buf = malloc(st.st_size); in readfile() local 18 *size = fread(buf, st.st_size, 1, f); in readfile() 20 return buf; in readfile() 29 static void dumpbytes(const uint8_t *buf, size_t len) in dumpbytes() argument 32 printf("%02X ", *buf++); in dumpbytes() 71 uint8_t *buf; in dumprecursive() local 73 err = cbor_value_dup_byte_string(it, &buf, &n, it); in dumprecursive() 76 dumpbytes(buf, n); in dumprecursive() 78 free(buf); in dumprecursive() 83 char *buf; in dumprecursive() local [all …]
|
/tinycbor-2.7.6/src/ |
D | cborencoder.c | 260 uint64_t buf[2]; in encode_number_no_update() local 261 uint8_t *const bufend = (uint8_t *)buf + sizeof(buf); in encode_number_no_update() 263 put64(buf + 1, ui); /* we probably have a bunch of zeros in the beginning */ in encode_number_no_update() 356 uint8_t buf[1 + sizeof(uint64_t)]; in cbor_encode_floating_point() local 358 buf[0] = fpType; in cbor_encode_floating_point() 362 put64(buf + 1, *(const uint64_t*)value); in cbor_encode_floating_point() 364 put32(buf + 1, *(const uint32_t*)value); in cbor_encode_floating_point() 366 put16(buf + 1, *(const uint16_t*)value); in cbor_encode_floating_point() 368 return append_to_buffer(encoder, buf, size + 1); in cbor_encode_floating_point()
|
D | cbor_mbuf_reader.c | 65 cbor_mbuf_reader_cmp(struct cbor_decoder_reader *d, char *buf, int offset, in cbor_mbuf_reader_cmp() argument 69 return os_mbuf_cmpf(cb->m, offset + cb->init_off, buf, len) == 0; in cbor_mbuf_reader_cmp()
|
/tinycbor-2.7.6/include/tinycbor/ |
D | cbor_decoder_reader.h | 41 typedef uintptr_t (cbor_memcmp)(struct cbor_decoder_reader *d, char *buf, int offset, size_t len); 42 typedef uintptr_t (cbor_memcpy)(struct cbor_decoder_reader *d, char *buf, int offset, size_t len);
|
D | cbor.h | 241 typedef uintptr_t (cbor_memcmp)(struct cbor_decoder_reader *d, char *buf, int offset, size_t len); 242 typedef uintptr_t (cbor_memcpy)(struct cbor_decoder_reader *d, char *buf, int offset, size_t len);
|
/tinycbor-2.7.6/tests/encoder/ |
D | tst_encoder.cpp | 729 quint8 buf[2]; in illegalSimpleType() local 731 cbor_encoder_init(&encoder, buf, sizeof(buf), 0); in illegalSimpleType()
|