Lines Matching refs:binary

26  * API for handling strings and binary data
31 * Note: string and binary use equivalent objects.
32 * string is likely to contain readable textual information, binary will not.
54 * CoAP binary data definition
57 size_t length; /**< length of binary data */
58 uint8_t *s; /**< binary data */
62 * CoAP binary data definition with const data
65 size_t length; /**< length of binary data */
66 const uint8_t *s; /**< read-only binary data */
94 * @param size The size to allocate for the binary string data.
108 * Returns a new binary object with at least size bytes storage allocated.
113 * @param size The size to allocate for the binary data.
122 * @param binary The coap_binary_t object to free off.
124 void coap_delete_binary(coap_binary_t *binary);
131 * Note: If there is an error, @p binary will separately need to be released by
134 * @param binary The coap_binary_t object to resize.
135 * @param new_size The new size to allocate for the binary data.
139 coap_binary_t *coap_resize_binary(coap_binary_t *binary, size_t new_size);
143 * Returns a new const binary object with at least size bytes storage
144 * allocated, and the provided data copied into the binary object.
145 * The binary data must be released using coap_delete_bin_const().
148 * @param size The size to allocate for the binary data.
155 * Deletes the given const binary data and releases any memory allocated.
157 * @param binary The binary data to free off.
159 void coap_delete_bin_const(coap_bin_const_t *binary);
195 * Compares the two binary data for equality
197 * @param binary1 The first binary data.
198 * @param binary2 The second binary data.
200 * @return @c 1 if the binary data is equal