Lines Matching full:buffer
2 * @brief Buffer management.
24 * @brief Network buffer library
25 * @defgroup net_buf Network Buffer Library
32 /* Alignment needed for various parts of the buffer definition */
46 * @param _size Maximum data storage for the buffer.
65 * @param _size Maximum data storage for the buffer.
77 * @brief Simple network buffer representation.
86 * when the buffer only needs to be allocated on the stack or when the
87 * access to and lifetime of the buffer is well controlled and constrained.
90 /** Pointer to the start of data in the buffer. */
121 * @param _size Maximum data storage for the buffer.
139 * @param buf Buffer to initialize.
156 * Initialized buffer object with external data.
158 * @param buf Buffer to initialize.
160 * @param size Amount of data the pointed data buffer if able to fit.
166 * @brief Reset buffer
168 * Reset buffer data so it can be reused for other purposes.
170 * @param buf Buffer to reset.
179 * Clone buffer state, using the same data buffer.
181 * Initializes a buffer to point to the same data as an existing buffer.
185 * @param original Buffer to clone.
192 * @brief Prepare data to be added at the end of the buffer
194 * Increments the data length of a buffer to account for more data
197 * @param buf Buffer to update.
200 * @return The original tail of the buffer.
205 * @brief Copy given number of bytes from memory to the end of the buffer
207 * Increments the data length of the buffer to account for more data at the
210 * @param buf Buffer to update.
214 * @return The original tail of the buffer.
220 * @brief Add (8-bit) byte at the end of the buffer
222 * Increments the data length of the buffer to account for more data at the
225 * @param buf Buffer to update.
233 * @brief Add 16-bit value at the end of the buffer
235 * Adds 16-bit value in little endian format at the end of buffer.
236 * Increments the data length of a buffer to account for more data
239 * @param buf Buffer to update.
245 * @brief Add 16-bit value at the end of the buffer
247 * Adds 16-bit value in big endian format at the end of buffer.
248 * Increments the data length of a buffer to account for more data
251 * @param buf Buffer to update.
257 * @brief Add 24-bit value at the end of the buffer
259 * Adds 24-bit value in little endian format at the end of buffer.
260 * Increments the data length of a buffer to account for more data
263 * @param buf Buffer to update.
269 * @brief Add 24-bit value at the end of the buffer
271 * Adds 24-bit value in big endian format at the end of buffer.
272 * Increments the data length of a buffer to account for more data
275 * @param buf Buffer to update.
281 * @brief Add 32-bit value at the end of the buffer
283 * Adds 32-bit value in little endian format at the end of buffer.
284 * Increments the data length of a buffer to account for more data
287 * @param buf Buffer to update.
293 * @brief Add 32-bit value at the end of the buffer
295 * Adds 32-bit value in big endian format at the end of buffer.
296 * Increments the data length of a buffer to account for more data
299 * @param buf Buffer to update.
305 * @brief Add 40-bit value at the end of the buffer
307 * Adds 40-bit value in little endian format at the end of buffer.
308 * Increments the data length of a buffer to account for more data
311 * @param buf Buffer to update.
317 * @brief Add 40-bit value at the end of the buffer
319 * Adds 40-bit value in big endian format at the end of buffer.
320 * Increments the data length of a buffer to account for more data
323 * @param buf Buffer to update.
329 * @brief Add 48-bit value at the end of the buffer
331 * Adds 48-bit value in little endian format at the end of buffer.
332 * Increments the data length of a buffer to account for more data
335 * @param buf Buffer to update.
341 * @brief Add 48-bit value at the end of the buffer
343 * Adds 48-bit value in big endian format at the end of buffer.
344 * Increments the data length of a buffer to account for more data
347 * @param buf Buffer to update.
353 * @brief Add 64-bit value at the end of the buffer
355 * Adds 64-bit value in little endian format at the end of buffer.
356 * Increments the data length of a buffer to account for more data
359 * @param buf Buffer to update.
365 * @brief Add 64-bit value at the end of the buffer
367 * Adds 64-bit value in big endian format at the end of buffer.
368 * Increments the data length of a buffer to account for more data
371 * @param buf Buffer to update.
377 * @brief Remove data from the end of the buffer.
379 * Removes data from the end of the buffer by modifying the buffer length.
381 * @param buf Buffer to update.
384 * @return New end of the buffer data.
389 * @brief Remove a 8-bit value from the end of the buffer
394 * @param buf A valid pointer on a buffer.
401 * @brief Remove and convert 16 bits from the end of the buffer.
406 * @param buf A valid pointer on a buffer.
413 * @brief Remove and convert 16 bits from the end of the buffer.
418 * @param buf A valid pointer on a buffer.
425 * @brief Remove and convert 24 bits from the end of the buffer.
430 * @param buf A valid pointer on a buffer.
437 * @brief Remove and convert 24 bits from the end of the buffer.
442 * @param buf A valid pointer on a buffer.
449 * @brief Remove and convert 32 bits from the end of the buffer.
454 * @param buf A valid pointer on a buffer.
461 * @brief Remove and convert 32 bits from the end of the buffer.
466 * @param buf A valid pointer on a buffer.
473 * @brief Remove and convert 40 bits from the end of the buffer.
478 * @param buf A valid pointer on a buffer.
485 * @brief Remove and convert 40 bits from the end of the buffer.
490 * @param buf A valid pointer on a buffer.
497 * @brief Remove and convert 48 bits from the end of the buffer.
502 * @param buf A valid pointer on a buffer.
509 * @brief Remove and convert 48 bits from the end of the buffer.
514 * @param buf A valid pointer on a buffer.
521 * @brief Remove and convert 64 bits from the end of the buffer.
526 * @param buf A valid pointer on a buffer.
533 * @brief Remove and convert 64 bits from the end of the buffer.
538 * @param buf A valid pointer on a buffer.
545 * @brief Prepare data to be added to the start of the buffer
547 * Modifies the data pointer and buffer length to account for more data
548 * in the beginning of the buffer.
550 * @param buf Buffer to update.
553 * @return The new beginning of the buffer data.
558 * @brief Copy given number of bytes from memory to the start of the buffer.
560 * Modifies the data pointer and buffer length to account for more data
561 * in the beginning of the buffer.
563 * @param buf Buffer to update.
567 * @return The new beginning of the buffer data.
573 * @brief Push 16-bit value to the beginning of the buffer
576 * buffer.
578 * @param buf Buffer to update.
579 * @param val 16-bit value to be pushed to the buffer.
584 * @brief Push 16-bit value to the beginning of the buffer
587 * buffer.
589 * @param buf Buffer to update.
590 * @param val 16-bit value to be pushed to the buffer.
595 * @brief Push 8-bit value to the beginning of the buffer
597 * Adds 8-bit value the beginning of the buffer.
599 * @param buf Buffer to update.
600 * @param val 8-bit value to be pushed to the buffer.
605 * @brief Push 24-bit value to the beginning of the buffer
608 * buffer.
610 * @param buf Buffer to update.
611 * @param val 24-bit value to be pushed to the buffer.
616 * @brief Push 24-bit value to the beginning of the buffer
619 * buffer.
621 * @param buf Buffer to update.
622 * @param val 24-bit value to be pushed to the buffer.
627 * @brief Push 32-bit value to the beginning of the buffer
630 * buffer.
632 * @param buf Buffer to update.
633 * @param val 32-bit value to be pushed to the buffer.
638 * @brief Push 32-bit value to the beginning of the buffer
641 * buffer.
643 * @param buf Buffer to update.
644 * @param val 32-bit value to be pushed to the buffer.
649 * @brief Push 40-bit value to the beginning of the buffer
652 * buffer.
654 * @param buf Buffer to update.
655 * @param val 40-bit value to be pushed to the buffer.
660 * @brief Push 40-bit value to the beginning of the buffer
663 * buffer.
665 * @param buf Buffer to update.
666 * @param val 40-bit value to be pushed to the buffer.
671 * @brief Push 48-bit value to the beginning of the buffer
674 * buffer.
676 * @param buf Buffer to update.
677 * @param val 48-bit value to be pushed to the buffer.
682 * @brief Push 48-bit value to the beginning of the buffer
685 * buffer.
687 * @param buf Buffer to update.
688 * @param val 48-bit value to be pushed to the buffer.
693 * @brief Push 64-bit value to the beginning of the buffer
696 * buffer.
698 * @param buf Buffer to update.
699 * @param val 64-bit value to be pushed to the buffer.
704 * @brief Push 64-bit value to the beginning of the buffer
707 * buffer.
709 * @param buf Buffer to update.
710 * @param val 64-bit value to be pushed to the buffer.
715 * @brief Remove data from the beginning of the buffer.
717 * Removes data from the beginning of the buffer by modifying the data
718 * pointer and buffer length.
720 * @param buf Buffer to update.
723 * @return New beginning of the buffer data.
728 * @brief Remove data from the beginning of the buffer.
730 * Removes data from the beginning of the buffer by modifying the data
731 * pointer and buffer length.
733 * @param buf Buffer to update.
736 * @return Pointer to the old location of the buffer data.
741 * @brief Remove a 8-bit value from the beginning of the buffer
746 * @param buf A valid pointer on a buffer.
753 * @brief Remove and convert 16 bits from the beginning of the buffer.
758 * @param buf A valid pointer on a buffer.
765 * @brief Remove and convert 16 bits from the beginning of the buffer.
770 * @param buf A valid pointer on a buffer.
777 * @brief Remove and convert 24 bits from the beginning of the buffer.
782 * @param buf A valid pointer on a buffer.
789 * @brief Remove and convert 24 bits from the beginning of the buffer.
794 * @param buf A valid pointer on a buffer.
801 * @brief Remove and convert 32 bits from the beginning of the buffer.
806 * @param buf A valid pointer on a buffer.
813 * @brief Remove and convert 32 bits from the beginning of the buffer.
818 * @param buf A valid pointer on a buffer.
825 * @brief Remove and convert 40 bits from the beginning of the buffer.
830 * @param buf A valid pointer on a buffer.
837 * @brief Remove and convert 40 bits from the beginning of the buffer.
842 * @param buf A valid pointer on a buffer.
849 * @brief Remove and convert 48 bits from the beginning of the buffer.
854 * @param buf A valid pointer on a buffer.
861 * @brief Remove and convert 48 bits from the beginning of the buffer.
866 * @param buf A valid pointer on a buffer.
873 * @brief Remove and convert 64 bits from the beginning of the buffer.
878 * @param buf A valid pointer on a buffer.
885 * @brief Remove and convert 64 bits from the beginning of the buffer.
890 * @param buf A valid pointer on a buffer.
897 * @brief Get the tail pointer for a buffer.
899 * Get a pointer to the end of the data in a buffer.
901 * @param buf Buffer.
903 * @return Tail pointer for the buffer.
911 * @brief Check buffer headroom.
913 * Check how much free space there is in the beginning of the buffer.
915 * buf A valid pointer on a buffer
917 * @return Number of bytes available in the beginning of the buffer.
922 * @brief Check buffer tailroom.
924 * Check how much free space there is at the end of the buffer.
926 * @param buf A valid pointer on a buffer
928 * @return Number of bytes available at the end of the buffer.
937 * @param buf A valid pointer on a buffer
944 * @brief Parsing state of a buffer.
946 * This is used for temporarily storing the parsing state of a buffer
958 * @brief Save the parsing state of a buffer.
960 * Saves the parsing state of a buffer so it can be restored later.
962 * @param buf Buffer from which the state should be saved.
973 * @brief Restore the parsing state of a buffer.
975 * Restores the parsing state of a buffer from a state previously stored
978 * @param buf Buffer to which the state should be restored.
989 * Flag indicating that the buffer's associated data pointer, points to
1000 * @brief Network buffer representation.
1007 /** Allow placing the buffer into sys_slist_t */
1010 /** Fragments associated with this buffer. */
1016 /** Bit-field of buffer flags. */
1019 /** Where the buffer should go when freed up. */
1022 /** Size of user data on this buffer */
1031 /** Pointer to the start of data in the buffer. */
1037 /** Amount of data that this buffer can store. */
1052 /** System metadata for this buffer. Cleared on allocation. */
1074 * @brief Network buffer pool representation.
1079 /** LIFO to place the buffer into when free */
1105 /** Optional destroy callback when buffer is freed. */
1111 /** Start of buffer storage array */
1169 * process of returning the buffer to the pool.
1173 * @param _ud_size User data space to reserve per buffer.
1174 * @param _destroy Optional destroy callback when buffer is freed.
1213 * process of returning the buffer to the pool.
1217 * @param _data_size Maximum data payload per buffer.
1218 * @param _ud_size User data space to reserve per buffer.
1219 * @param _destroy Optional destroy callback when buffer is freed.
1257 * process of returning the buffer to the pool.
1262 * @param _ud_size User data space to reserve per buffer.
1263 * @param _destroy Optional destroy callback when buffer is freed.
1291 * process of returning the buffer to the pool.
1295 * @param _size Maximum data size for each buffer.
1297 * @param _destroy Optional destroy callback when buffer is freed.
1312 * @brief Get a zero-based index for a buffer.
1314 * This function will translate a buffer into a zero-based index,
1315 * based on its placement in its buffer pool. This can be useful if you
1319 * @param buf Network buffer.
1321 * @return Zero-based index for the buffer.
1326 * @brief Allocate a new fixed buffer from a pool.
1336 * @param pool Which pool to allocate the buffer from.
1342 * @return New buffer or NULL if out of buffers.
1366 * @brief Allocate a new variable length buffer from a pool.
1376 * @param pool Which pool to allocate the buffer from.
1377 * @param size Amount of data the buffer must be able to fit.
1383 * @return New buffer or NULL if out of buffers.
1400 * @brief Allocate a new buffer from a pool but with external data pointer.
1402 * Allocate a new buffer from a pool, where the data pointer comes from the
1413 * @param pool Which pool to allocate the buffer from.
1415 * @param size Amount of data the pointed data buffer if able to fit.
1421 * @return New buffer or NULL if out of buffers.
1438 * @brief Get a buffer from a FIFO.
1442 * @param fifo Which FIFO to take the buffer from.
1447 * @return New buffer or NULL if the FIFO is empty.
1461 * @brief Destroy buffer from custom destroy callback
1467 * @param buf Buffer to destroy.
1484 * @brief Reset buffer
1486 * Reset buffer data and flags so it can be reused for other purposes.
1488 * @param buf Buffer to reset.
1493 * @brief Initialize buffer with the given headroom.
1495 * The buffer is not expected to contain any data when this API is called.
1497 * @param buf Buffer to initialize.
1503 * @brief Put a buffer into a list
1505 * @param list Which list to append the buffer to.
1506 * @param buf Buffer.
1511 * @brief Get a buffer from a list.
1513 * @param list Which list to take the buffer from.
1515 * @return New buffer or NULL if the FIFO is empty.
1520 * @brief Put a buffer to the end of a FIFO.
1524 * @param fifo Which FIFO to put the buffer to.
1525 * @param buf Buffer.
1530 * @brief Decrements the reference count of a buffer.
1532 * The buffer is put back into the pool if the reference count reaches zero.
1534 * @param buf A valid pointer on a buffer
1545 * @brief Increment the reference count of a buffer.
1547 * @param buf A valid pointer on a buffer
1549 * @return the buffer newly referenced
1554 * @brief Clone buffer
1556 * Duplicate given buffer including any (user) data and headers currently stored.
1558 * @param buf A valid pointer on a buffer
1564 * @return Cloned buffer or NULL if out of buffers.
1570 * @brief Get a pointer to the user data of a buffer.
1572 * @param buf A valid pointer on a buffer
1574 * @return Pointer to the user data of the buffer.
1582 * @brief Copy user data from one to another buffer.
1584 * @param dst A valid pointer to a buffer gettings its user data overwritten.
1585 * @param src A valid pointer to a buffer gettings its user data copied. User data size must be
1593 * @brief Initialize buffer with the given headroom.
1595 * The buffer is not expected to contain any data when this API is called.
1597 * @param buf Buffer to initialize.
1606 * @brief Prepare data to be added at the end of the buffer
1608 * Increments the data length of a buffer to account for more data
1611 * @param buf Buffer to update.
1614 * @return The original tail of the buffer.
1622 * @brief Copies the given number of bytes to the end of the buffer
1624 * Increments the data length of the buffer to account for more data at
1627 * @param buf Buffer to update.
1631 * @return The original tail of the buffer.
1640 * @brief Add (8-bit) byte at the end of the buffer
1642 * Increments the data length of the buffer to account for more data at
1645 * @param buf Buffer to update.
1656 * @brief Add 16-bit value at the end of the buffer
1658 * Adds 16-bit value in little endian format at the end of buffer.
1659 * Increments the data length of a buffer to account for more data
1662 * @param buf Buffer to update.
1671 * @brief Add 16-bit value at the end of the buffer
1673 * Adds 16-bit value in big endian format at the end of buffer.
1674 * Increments the data length of a buffer to account for more data
1677 * @param buf Buffer to update.
1686 * @brief Add 24-bit value at the end of the buffer
1688 * Adds 24-bit value in little endian format at the end of buffer.
1689 * Increments the data length of a buffer to account for more data
1692 * @param buf Buffer to update.
1701 * @brief Add 24-bit value at the end of the buffer
1703 * Adds 24-bit value in big endian format at the end of buffer.
1704 * Increments the data length of a buffer to account for more data
1707 * @param buf Buffer to update.
1716 * @brief Add 32-bit value at the end of the buffer
1718 * Adds 32-bit value in little endian format at the end of buffer.
1719 * Increments the data length of a buffer to account for more data
1722 * @param buf Buffer to update.
1731 * @brief Add 32-bit value at the end of the buffer
1733 * Adds 32-bit value in big endian format at the end of buffer.
1734 * Increments the data length of a buffer to account for more data
1737 * @param buf Buffer to update.
1746 * @brief Add 40-bit value at the end of the buffer
1748 * Adds 40-bit value in little endian format at the end of buffer.
1749 * Increments the data length of a buffer to account for more data
1752 * @param buf Buffer to update.
1761 * @brief Add 40-bit value at the end of the buffer
1763 * Adds 40-bit value in big endian format at the end of buffer.
1764 * Increments the data length of a buffer to account for more data
1767 * @param buf Buffer to update.
1776 * @brief Add 48-bit value at the end of the buffer
1778 * Adds 48-bit value in little endian format at the end of buffer.
1779 * Increments the data length of a buffer to account for more data
1782 * @param buf Buffer to update.
1791 * @brief Add 48-bit value at the end of the buffer
1793 * Adds 48-bit value in big endian format at the end of buffer.
1794 * Increments the data length of a buffer to account for more data
1797 * @param buf Buffer to update.
1806 * @brief Add 64-bit value at the end of the buffer
1808 * Adds 64-bit value in little endian format at the end of buffer.
1809 * Increments the data length of a buffer to account for more data
1812 * @param buf Buffer to update.
1821 * @brief Add 64-bit value at the end of the buffer
1823 * Adds 64-bit value in big endian format at the end of buffer.
1824 * Increments the data length of a buffer to account for more data
1827 * @param buf Buffer to update.
1836 * @brief Remove data from the end of the buffer.
1838 * Removes data from the end of the buffer by modifying the buffer length.
1840 * @param buf Buffer to update.
1843 * @return New end of the buffer data.
1851 * @brief Remove a 8-bit value from the end of the buffer
1856 * @param buf A valid pointer on a buffer.
1866 * @brief Remove and convert 16 bits from the end of the buffer.
1871 * @param buf A valid pointer on a buffer.
1881 * @brief Remove and convert 16 bits from the end of the buffer.
1886 * @param buf A valid pointer on a buffer.
1896 * @brief Remove and convert 24 bits from the end of the buffer.
1901 * @param buf A valid pointer on a buffer.
1911 * @brief Remove and convert 24 bits from the end of the buffer.
1916 * @param buf A valid pointer on a buffer.
1926 * @brief Remove and convert 32 bits from the end of the buffer.
1931 * @param buf A valid pointer on a buffer.
1941 * @brief Remove and convert 32 bits from the end of the buffer.
1946 * @param buf A valid pointer on a buffer
1956 * @brief Remove and convert 40 bits from the end of the buffer.
1961 * @param buf A valid pointer on a buffer.
1971 * @brief Remove and convert 40 bits from the end of the buffer.
1976 * @param buf A valid pointer on a buffer
1986 * @brief Remove and convert 48 bits from the end of the buffer.
1991 * @param buf A valid pointer on a buffer.
2001 * @brief Remove and convert 48 bits from the end of the buffer.
2006 * @param buf A valid pointer on a buffer
2016 * @brief Remove and convert 64 bits from the end of the buffer.
2021 * @param buf A valid pointer on a buffer.
2031 * @brief Remove and convert 64 bits from the end of the buffer.
2036 * @param buf A valid pointer on a buffer
2046 * @brief Prepare data to be added at the start of the buffer
2048 * Modifies the data pointer and buffer length to account for more data
2049 * in the beginning of the buffer.
2051 * @param buf Buffer to update.
2054 * @return The new beginning of the buffer data.
2062 * @brief Copies the given number of bytes to the start of the buffer
2064 * Modifies the data pointer and buffer length to account for more data
2065 * in the beginning of the buffer.
2067 * @param buf Buffer to update.
2071 * @return The new beginning of the buffer data.
2080 * @brief Push 8-bit value to the beginning of the buffer
2082 * Adds 8-bit value the beginning of the buffer.
2084 * @param buf Buffer to update.
2085 * @param val 8-bit value to be pushed to the buffer.
2093 * @brief Push 16-bit value to the beginning of the buffer
2096 * buffer.
2098 * @param buf Buffer to update.
2099 * @param val 16-bit value to be pushed to the buffer.
2107 * @brief Push 16-bit value to the beginning of the buffer
2110 * buffer.
2112 * @param buf Buffer to update.
2113 * @param val 16-bit value to be pushed to the buffer.
2121 * @brief Push 24-bit value to the beginning of the buffer
2124 * buffer.
2126 * @param buf Buffer to update.
2127 * @param val 24-bit value to be pushed to the buffer.
2135 * @brief Push 24-bit value to the beginning of the buffer
2138 * buffer.
2140 * @param buf Buffer to update.
2141 * @param val 24-bit value to be pushed to the buffer.
2149 * @brief Push 32-bit value to the beginning of the buffer
2152 * buffer.
2154 * @param buf Buffer to update.
2155 * @param val 32-bit value to be pushed to the buffer.
2163 * @brief Push 32-bit value to the beginning of the buffer
2166 * buffer.
2168 * @param buf Buffer to update.
2169 * @param val 32-bit value to be pushed to the buffer.
2177 * @brief Push 40-bit value to the beginning of the buffer
2180 * buffer.
2182 * @param buf Buffer to update.
2183 * @param val 40-bit value to be pushed to the buffer.
2191 * @brief Push 40-bit value to the beginning of the buffer
2194 * buffer.
2196 * @param buf Buffer to update.
2197 * @param val 40-bit value to be pushed to the buffer.
2205 * @brief Push 48-bit value to the beginning of the buffer
2208 * buffer.
2210 * @param buf Buffer to update.
2211 * @param val 48-bit value to be pushed to the buffer.
2219 * @brief Push 48-bit value to the beginning of the buffer
2222 * buffer.
2224 * @param buf Buffer to update.
2225 * @param val 48-bit value to be pushed to the buffer.
2233 * @brief Push 64-bit value to the beginning of the buffer
2236 * buffer.
2238 * @param buf Buffer to update.
2239 * @param val 64-bit value to be pushed to the buffer.
2247 * @brief Push 64-bit value to the beginning of the buffer
2250 * buffer.
2252 * @param buf Buffer to update.
2253 * @param val 64-bit value to be pushed to the buffer.
2261 * @brief Remove data from the beginning of the buffer.
2263 * Removes data from the beginning of the buffer by modifying the data
2264 * pointer and buffer length.
2266 * @param buf Buffer to update.
2269 * @return New beginning of the buffer data.
2277 * @brief Remove data from the beginning of the buffer.
2279 * Removes data from the beginning of the buffer by modifying the data
2280 * pointer and buffer length.
2282 * @param buf Buffer to update.
2285 * @return Pointer to the old beginning of the buffer data.
2293 * @brief Remove a 8-bit value from the beginning of the buffer
2298 * @param buf A valid pointer on a buffer.
2308 * @brief Remove and convert 16 bits from the beginning of the buffer.
2313 * @param buf A valid pointer on a buffer.
2323 * @brief Remove and convert 16 bits from the beginning of the buffer.
2328 * @param buf A valid pointer on a buffer.
2338 * @brief Remove and convert 24 bits from the beginning of the buffer.
2343 * @param buf A valid pointer on a buffer.
2353 * @brief Remove and convert 24 bits from the beginning of the buffer.
2358 * @param buf A valid pointer on a buffer.
2368 * @brief Remove and convert 32 bits from the beginning of the buffer.
2373 * @param buf A valid pointer on a buffer.
2383 * @brief Remove and convert 32 bits from the beginning of the buffer.
2388 * @param buf A valid pointer on a buffer
2398 * @brief Remove and convert 40 bits from the beginning of the buffer.
2403 * @param buf A valid pointer on a buffer.
2413 * @brief Remove and convert 40 bits from the beginning of the buffer.
2418 * @param buf A valid pointer on a buffer
2428 * @brief Remove and convert 48 bits from the beginning of the buffer.
2433 * @param buf A valid pointer on a buffer.
2443 * @brief Remove and convert 48 bits from the beginning of the buffer.
2448 * @param buf A valid pointer on a buffer
2458 * @brief Remove and convert 64 bits from the beginning of the buffer.
2463 * @param buf A valid pointer on a buffer.
2473 * @brief Remove and convert 64 bits from the beginning of the buffer.
2478 * @param buf A valid pointer on a buffer
2488 * @brief Check buffer tailroom.
2490 * Check how much free space there is at the end of the buffer.
2492 * @param buf A valid pointer on a buffer
2494 * @return Number of bytes available at the end of the buffer.
2502 * @brief Check buffer headroom.
2504 * Check how much free space there is in the beginning of the buffer.
2506 * buf A valid pointer on a buffer
2508 * @return Number of bytes available in the beginning of the buffer.
2520 * @param buf A valid pointer on a buffer
2530 * @brief Get the tail pointer for a buffer.
2532 * Get a pointer to the end of the data in a buffer.
2534 * @param buf Buffer.
2536 * @return Tail pointer for the buffer.
2553 * Insert a new fragment into the buffer fragments list after the parent.
2558 * @param parent Parent buffer/fragment.
2566 * Append a new fragment into the buffer fragments list.
2582 * @param parent Parent buffer/fragment, or NULL if there is no parent.
2585 * @return Pointer to the buffer following the fragment, or NULL if it
2599 * @brief Copy bytes from net_buf chain starting at offset to linear buffer
2602 * offset in it, to a linear buffer @a dst. Return number of bytes actually
2604 * enough data, or destination buffer is too small.
2606 * @param dst Destination buffer
2607 * @param dst_len Destination buffer length
2618 * @brief Network buffer allocator callback.
2639 * the same pool as the original buffer.
2641 * @param buf Network buffer.
2663 * through multiple buffer fragments.
2665 * @param buf Network buffer
2667 * @param data Data buffer for comparison
2682 * @param buf Network buffer.
2704 * Calculates the total amount of data stored in the given buffer and the
2707 * @param buf Buffer to start off with.
2709 * @return Number of bytes in the buffer and its fragments.