25 lines
573 B
C
25 lines
573 B
C
#ifndef BYTE_BUFFER_H_
|
|
#define BYTE_BUFFER_H_
|
|
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif // ifdef __cplusplus
|
|
|
|
/**
|
|
* @brief Uint8* buffer print function, will print at most 20480 bytes.
|
|
* @param OutputFile file where to print the dump.
|
|
* @param SourceBuffer the byte buffer to dump;
|
|
* @param Size the actual number of bytes in the buffer.
|
|
*/
|
|
void PrintByteBuffer(FILE* OutputFile, void const* SourceBuffer, size_t const Size);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif // ifdef __cplusplus
|
|
|
|
#endif /* BYTE_BUFFER_H_ */
|