File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 25
25
#include <tinycbor/cbor_buf_reader.h>
26
26
#include <tinycbor/compilersupport_p.h>
27
27
28
- static inline uint16_t get16 (const uint8_t * ptr )
28
+ CBOR_INLINE_API uint16_t get16 (const uint8_t * ptr )
29
29
{
30
30
uint16_t result ;
31
31
memcpy (& result , ptr , sizeof (result ));
32
32
return cbor_ntohs (result );
33
33
}
34
34
35
- static inline uint32_t get32 (const uint8_t * ptr )
35
+ CBOR_INLINE_API uint32_t get32 (const uint8_t * ptr )
36
36
{
37
37
uint32_t result ;
38
38
memcpy (& result , ptr , sizeof (result ));
39
39
return cbor_ntohl (result );
40
40
}
41
41
42
- static inline uint64_t get64 (const uint8_t * ptr )
42
+ CBOR_INLINE_API uint64_t get64 (const uint8_t * ptr )
43
43
{
44
44
uint64_t result ;
45
45
memcpy (& result , ptr , sizeof (result ));
Original file line number Diff line number Diff line change 25
25
#include <tinycbor/cbor.h>
26
26
#include <tinycbor/cbor_buf_writer.h>
27
27
28
- static inline int
28
+ CBOR_INLINE_API int
29
29
would_overflow (struct cbor_buf_writer * cb , size_t len )
30
30
{
31
31
ptrdiff_t remaining = (ptrdiff_t )cb -> end ;
You can’t perform that action at this time.
0 commit comments