mbedtls_ssl_chk_buf_ptr() function
This function checks if the remaining size in a buffer is greater or equal than a needed space.
Syntax
static inline int mbedtls_ssl_chk_buf_ptr(const uint8_t *cur,
const uint8_t *end,
size_t need);
Arguments
cur
Pointer to the current position in the buffer.
end
Pointer to one past the end of the buffer.
need
Needed space in bytes.
Return value
Zero if the needed space is available in the buffer, non-zero otherwise.
mbedtls_ssl_chk_buf_ptr() is called by 22 functions:
![]()
mbedtls_ssl_chk_buf_ptr()
mbedtls_ssl_chk_buf_ptr():
![]()
mbedtls_ssl_chk_buf_ptr()