Lines Matching refs:data
2 * Dynamic data buffer
12 /* wpabuf::buf is a pointer to external data */
16 * Internal data structure for wpabuf. Please do not touch this directly from
18 * from this file to access data.
22 size_t used; /* length of data in the buffer */
31 struct wpabuf * wpabuf_alloc_ext_data(u8 *data, size_t len);
32 struct wpabuf * wpabuf_alloc_copy(const void *data, size_t len);
54 * wpabuf_len - Get the current length of a wpabuf buffer data
74 * wpabuf_head - Get pointer to the head of the buffer data
76 * Returns: Pointer to the head of the buffer data
89 * wpabuf_mhead - Get modifiable pointer to the head of the buffer data
91 * Returns: Pointer to the head of the buffer data
103 static inline void wpabuf_put_u8(struct wpabuf *buf, u8 data)
106 *pos = data;
109 static inline void wpabuf_put_le16(struct wpabuf *buf, u16 data)
112 WPA_PUT_LE16(pos, data);
115 static inline void wpabuf_put_le32(struct wpabuf *buf, u32 data)
118 WPA_PUT_LE32(pos, data);
121 static inline void wpabuf_put_be16(struct wpabuf *buf, u16 data)
124 WPA_PUT_BE16(pos, data);
127 static inline void wpabuf_put_be24(struct wpabuf *buf, u32 data)
130 WPA_PUT_BE24(pos, data);
133 static inline void wpabuf_put_be32(struct wpabuf *buf, u32 data)
136 WPA_PUT_BE32(pos, data);
139 static inline void wpabuf_put_data(struct wpabuf *buf, const void *data,
142 if (data)
143 os_memcpy(wpabuf_put(buf, len), data, len);
152 static inline void wpabuf_set(struct wpabuf *buf, const void *data, size_t len)
154 buf->buf = (u8 *) data;