diff --git a/include/coap/encode.h b/include/coap/encode.h index bdb7aa56..351c8618 100644 --- a/include/coap/encode.h +++ b/include/coap/encode.h @@ -3,7 +3,7 @@ * Copyright (C) 2010--2012 Olaf Bergmann * * This file is part of the CoAP library libcoap. Please see - * README for terms of use. + * README for terms of use. */ #ifndef _COAP_ENCODE_H_ @@ -36,16 +36,15 @@ extern int coap_fls(unsigned int i); #define COAP_PSEUDOFP_ENCODE_8_4_UP(v,ls,s) (v < HIBIT ? v : (ls = coap_fls(v) - Nn, (s = (((v + ((1<> ls) & MMASK)), s == 0 ? HIBIT + ls + 1 : s + ls)) /** - * Decodes multiple-length byte sequences. buf points to an input byte - * sequence of length len. Returns the decoded value. + * Decodes multiple-length byte sequences. buf points to an input byte sequence + * of length len. Returns the decoded value. */ unsigned int coap_decode_var_bytes(unsigned char *buf,unsigned int len); /** - * Encodes multiple-length byte sequences. buf points to an output - * buffer of sufficient length to store the encoded bytes. val is - * the value to encode. Returns the number of bytes used to encode - * val or 0 on error. + * Encodes multiple-length byte sequences. buf points to an output buffer of + * sufficient length to store the encoded bytes. val is the value to encode. + * Returns the number of bytes used to encode val or 0 on error. */ unsigned int coap_encode_var_bytes(unsigned char *buf, unsigned int val);