mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-04 17:02:56 +03:00
i/c/encode.h: whitespace cleanup, reformatting, no changes
Just some cleanup like whitespace, punctiation marking and indentation issues.
This commit is contained in:
1 parent
62ddbd232c
commit
9ab6d050e6
1 file changed
+6
-7
@@ -3,7 +3,7 @@
|
||||
* Copyright (C) 2010--2012 Olaf Bergmann <bergmann@tzi.org>
|
||||
*
|
||||
* 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<<E<<ls)-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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user