Revision fbc89189 include/net_helper.h

View differences:

include/net_helper.h
120 120
* Serialize a nodeID in a byte array.
121 121
* @param[in] b A pointer to the byte array that will contain the nodeID serialization.
122 122
* @param[in] s A pointer to the nodeID to be serialized.
123
* @return The number of bytes written in the buffer.
123
* @param[in] max_write_size A number of bytes available in b
124
* @return The number of bytes written in the buffer, or -1 if error
124 125
*/
125
int nodeid_dump(uint8_t *b, const struct nodeID *s);
126
int nodeid_dump(uint8_t *b, const struct nodeID *s, size_t max_write_size);
126 127

  
127 128
#endif /* NET_HELPER_H */

Also available in: Unified diff