|
error_t | memPoolInit (void) |
| Memory pool initialization. More...
|
|
void * | memPoolAlloc (size_t size) |
| Allocate a memory block. More...
|
|
void | memPoolFree (void *p) |
| Release a memory block. More...
|
|
void | memPoolGetStats (uint_t *currentUsage, uint_t *maxUsage, uint_t *size) |
| Get memory pool usage. More...
|
|
NetBuffer * | netBufferAlloc (size_t length) |
| Allocate a multi-part buffer. More...
|
|
void | netBufferFree (NetBuffer *buffer) |
| Dispose a multi-part buffer. More...
|
|
size_t | netBufferGetLength (const NetBuffer *buffer) |
| Get the actual length of a multi-part buffer. More...
|
|
error_t | netBufferSetLength (NetBuffer *buffer, size_t length) |
| Adjust the length of a multi-part buffer. More...
|
|
void * | netBufferAt (const NetBuffer *buffer, size_t offset, size_t length) |
| Returns a pointer to a data segment. More...
|
|
error_t | netBufferConcat (NetBuffer *dest, const NetBuffer *src, size_t srcOffset, size_t length) |
| Concatenate two multi-part buffers. More...
|
|
error_t | netBufferCopy (NetBuffer *dest, size_t destOffset, const NetBuffer *src, size_t srcOffset, size_t length) |
| Copy data between multi-part buffers. More...
|
|
error_t | netBufferAppend (NetBuffer *dest, const void *src, size_t length) |
| Append data a multi-part buffer. More...
|
|
size_t | netBufferWrite (NetBuffer *dest, size_t destOffset, const void *src, size_t length) |
| Write data to a multi-part buffer. More...
|
|
size_t | netBufferRead (void *dest, const NetBuffer *src, size_t srcOffset, size_t length) |
| Read data from a multi-part buffer. More...
|
|
Memory management.
License
SPDX-License-Identifier: GPL-2.0-or-later
Copyright (C) 2010-2024 Oryx Embedded SARL. All rights reserved.
This file is part of CycloneTCP Open.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- Author
- Oryx Embedded SARL (www.oryx-embedded.com)
- Version
- 2.4.4
Definition in file net_mem.c.