Lines Matching full:binary
20 * API functions for handling strings and binary data
25 * Note: string and binary use equivalent objects.
26 * string is likely to contain readable textual information, binary will not.
48 * CoAP binary data definition
51 size_t length; /**< length of binary data */
52 uint8_t *s; /**< binary data */
56 * CoAP binary data definition with const data
59 size_t length; /**< length of binary data */
60 const uint8_t *s; /**< read-only binary data */
88 * @param size The size to allocate for the binary string data.
102 * Returns a new binary object with at least size bytes storage allocated.
107 * @param size The size to allocate for the binary data.
116 * @param binary The coap_binary_t object to free off.
118 void coap_delete_binary(coap_binary_t *binary);
125 * Note: If there is an error, @p binary will separately need to be released by
128 * @param binary The coap_binary_t object to resize.
129 * @param new_size The new size to allocate for the binary data.
133 coap_binary_t *coap_resize_binary(coap_binary_t *binary, size_t new_size);
137 * Returns a new const binary object with at least size bytes storage
138 * allocated, and the provided data copied into the binary object.
139 * The binary data must be released using coap_delete_bin_const().
142 * @param size The size to allocate for the binary data.
149 * Deletes the given const binary data and releases any memory allocated.
151 * @param binary The binary data to free off.
153 void coap_delete_bin_const(coap_bin_const_t *binary);
189 * Compares the two binary data for equality
191 * @param binary1 The first binary data.
192 * @param binary2 The second binary data.
194 * @return @c 1 if the binary data is equal