Lines Matching defs:value
51 * sequence of length @p length. Returns the up to 4 byte decoded value.
56 * @return The decoded value
62 * sequence of length @p length. Returns the up to 8 byte decoded value.
67 * @return The decoded value
73 * sufficient length to store the encoded bytes. @p value is the 4 byte value
75 * Returns the number of bytes used to encode @p value or 0 on error.
79 * @param value The value to encode into the buffer
81 * @return The number of bytes used to encode @p value (which can be 0
82 * when encoding value of 0) or @c 0 on error.
86 unsigned int value);
90 * sufficient length to store the encoded bytes. @p value is the 8 byte value
92 * Returns the number of bytes used to encode @p value or 0 on error.
96 * @param value The value to encode into the buffer
98 * @return The number of bytes used to encode @p value (which can be 0
99 * when encoding value of 0) or @c 0 on error.
103 uint64_t value);
109 * Provided for backward compatibility. As @p value has a
110 * maximum value of 0xffffffff, and buf is usually defined as an array, it
123 coap_encode_var_bytes(uint8_t *buf, unsigned int value) {
124 return (int)coap_encode_var_safe(buf, sizeof(value), value);