49 static inline
size_t wpabuf_size(const struct
wpabuf *buf)
59 static inline size_t wpabuf_len(
const struct wpabuf *buf)
69 static inline size_t wpabuf_tailroom(
const struct wpabuf *buf)
79 static inline const void * wpabuf_head(
const struct wpabuf *buf)
86 static inline const u8 * wpabuf_head_u8(
const struct wpabuf *buf)
88 return wpabuf_head(buf);
96 static inline void * wpabuf_mhead(
struct wpabuf *buf)
103 static inline u8 * wpabuf_mhead_u8(
struct wpabuf *buf)
105 return wpabuf_mhead(buf);
108 static inline void wpabuf_put_u8(
struct wpabuf *buf,
u8 data)
114 static inline void wpabuf_put_le16(
struct wpabuf *buf,
u16 data)
120 static inline void wpabuf_put_be16(
struct wpabuf *buf,
u16 data)
126 static inline void wpabuf_put_be24(
struct wpabuf *buf,
u32 data)
132 static inline void wpabuf_put_be32(
struct wpabuf *buf,
u32 data)
138 static inline void wpabuf_put_data(
struct wpabuf *buf,
const void *data,
145 static inline void wpabuf_put_buf(
struct wpabuf *dst,
148 wpabuf_put_data(dst, wpabuf_head(src), wpabuf_len(src));
151 static inline void wpabuf_set(
struct wpabuf *buf,
const void *data,
size_t len)
157 static inline void wpabuf_put_str(
struct wpabuf *dst,
const char *str)
159 wpabuf_put_data(dst, str,
os_strlen(str));
#define WPA_PUT_BE24(a, val)
struct wpabuf * wpabuf_concat(struct wpabuf *a, struct wpabuf *b)
void * wpabuf_put(struct wpabuf *buf, size_t len)
#define PRINTF_FORMAT(a, b)
struct wpabuf * wpabuf_dup(const struct wpabuf *src)
struct wpabuf * wpabuf_alloc(size_t len)
struct wpabuf * wpabuf_alloc_ext_data(u8 *data, size_t len)
struct wpabuf * wpabuf_alloc_copy(const void *data, size_t len)
#define WPA_PUT_BE16(a, val)
#define WPA_PUT_LE16(a, val)
int wpabuf_resize(struct wpabuf **buf, size_t add_len)
#define WPA_PUT_BE32(a, val)
#define os_memcpy(d, s, n)
void wpabuf_free(struct wpabuf *buf)
void wpabuf_printf(struct wpabuf *buf, char *fmt,...) PRINTF_FORMAT(2
struct wpabuf * wpabuf_zeropad(struct wpabuf *buf, size_t len)