libraries/core/src/core_string.cpp
int WriteBase64Str(
    const void* buffer,
    int bytes,
    char* encoded_buffer,
    int encoded_bytes)
{
    const int written = WriteBase64(
        buffer,
        bytes,
        encoded_buffer,
        encoded_bytes - 1);

    encoded_buffer[written] = '\0';

    return written;
}
// This version writes a C string null-terminator
This version writes a C string null-terminator
This version writes a C string null - terminator
int WriteBase64Str(
    const void* buffer,
    int bytes,
    char* encoded_buffer,
    int encoded_bytes)
{
    const int written = WriteBase64(
        buffer,
        bytes,
        encoded_buffer,
        encoded_bytes - 1);
    encoded_buffer[written] = '\0';
    return written;
}
int WriteBase64Str ( const void * buffer , int bytes , char * encoded_buffer , int encoded_bytes ) { const int written = WriteBase64 ( buffer , bytes , encoded_buffer , encoded_bytes - 1 ) ; encoded_buffer [ written ] = ' \0 ' ; return written ; }
This version writes a C string null-terminator
This version writes a C string null - terminator