library/src/buffer_analysis/BP-BufferAnalysis.cc
// displays a buffer analysis structure and all provided sub-structures
displays a buffer analysis structure and all provided sub-structures
displays a buffer analysis structure and all provided sub - structures
BP_ERROR_T BP_DisplayBufferAnalysis(P_BP_BUFFER_ANALYSIS analysis)
{
	if(!analysis)
		return ERR_FAILURE;
	printf("\n [+] Buffer Analysis (%p)", analysis);
	printf("\n");
	printf("\n\t tailqueue allocator:    %p", analysis->tq);
	printf("\n\t buffer:                 %p", analysis->buffer);
	printf("\n\t buffer_n:               %zu", analysis->buffer_n);
	if(analysis->ascii)
	{
		printf("\n");
		BP_DisplayBufferAnalysisASCII(analysis);
	}
	return ERR_SUCCESS;
}
BP_ERROR_T BP_DisplayBufferAnalysis ( P_BP_BUFFER_ANALYSIS analysis ) { if ( ! analysis ) return ERR_FAILURE ; printf ( " \n " , analysis ) ; printf ( " \n " ) ; printf ( " \n \t " , analysis -> tq ) ; printf ( " \n \t " , analysis -> buffer ) ; printf ( " \n \t " , analysis -> buffer_n ) ; if ( analysis -> ascii ) { printf ( " \n " ) ; BP_DisplayBufferAnalysisASCII ( analysis ) ; } return ERR_SUCCESS ; }
displays a buffer analysis structure and all provided sub-structures
displays a buffer analysis structure and all provided sub - structures
// ensure we have an analysis structure at the bare minimum // display the analysis header // display ascii analysis if a structure is set // add newline // display the ascii analysis (takes a buff analysis structure, not a specific // ascii analysis structure) // return indicating success