Lines Matching full: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);
52 * wpabuf_len - Get the current length of a wpabuf buffer data
72 * wpabuf_head - Get pointer to the head of the buffer data
74 * Returns: Pointer to the head of the buffer data
87 * wpabuf_mhead - Get modifiable pointer to the head of the buffer data
89 * Returns: Pointer to the head of the buffer data
101 static inline void wpabuf_put_u8(struct wpabuf *buf, u8 data)
104 *pos = data;
107 static inline void wpabuf_put_le16(struct wpabuf *buf, u16 data)
110 WPA_PUT_LE16(pos, data);
113 static inline void wpabuf_put_le32(struct wpabuf *buf, u32 data)
116 WPA_PUT_LE32(pos, data);
119 static inline void wpabuf_put_be16(struct wpabuf *buf, u16 data)
122 WPA_PUT_BE16(pos, data);
125 static inline void wpabuf_put_be24(struct wpabuf *buf, u32 data)
128 WPA_PUT_BE24(pos, data);
131 static inline void wpabuf_put_be32(struct wpabuf *buf, u32 data)
134 WPA_PUT_BE32(pos, data);
137 static inline void wpabuf_put_data(struct wpabuf *buf, const void *data,
140 if (data)
141 os_memcpy(wpabuf_put(buf, len), data, len);
150 static inline void wpabuf_set(struct wpabuf *buf, const void *data, size_t len)
152 buf->buf = (u8 *) data;