src/wolfSSL/src/internal.c
int CheckAvailableSize(WOLFSSL *ssl, int size)
{

    if (size < 0) {
        WOLFSSL_MSG("CheckAvailableSize() called with negative number");
        return BAD_FUNC_ARG;
    }

    if (ssl->buffers.outputBuffer.bufferSize - ssl->buffers.outputBuffer.length
                                             < (word32)size) {
        if (GrowOutputBuffer(ssl, size) < 0)
            return MEMORY_E;
    }

    return 0;
}
/* check available size into output buffer, make room if needed */
check available size into output buffer, make room if needed
check available size into output buffer make room if needed
int CheckAvailableSize(WOLFSSL *ssl, int size)
{
    if (size < 0) {
        WOLFSSL_MSG("CheckAvailableSize() called with negative number");
        return BAD_FUNC_ARG;
    }
    if (ssl->buffers.outputBuffer.bufferSize - ssl->buffers.outputBuffer.length
                                             < (word32)size) {
        if (GrowOutputBuffer(ssl, size) < 0)
            return MEMORY_E;
    }
    return 0;
}
int CheckAvailableSize ( WOLFSSL * ssl , int size ) { if ( size < 0 ) { WOLFSSL_MSG ( " " ) ; return BAD_FUNC_ARG ; } if ( ssl -> buffers . outputBuffer . bufferSize - ssl -> buffers . outputBuffer . length < ( word32 ) size ) { if ( GrowOutputBuffer ( ssl , size ) < 0 ) return MEMORY_E ; } return 0 ; }
check available size into output buffer, make room if needed
check available size into output buffer make room if needed