Documentation Project 1
sack::logging::LogBinary Function
SYSLOG_PROC void SYSLOG_API LogBinary(P_8 buffer, _32 size);

Log a binary buffer. Logs lines representing 16 bytes of data at a time. The hex of each byte in a buffer followed by the text is logged. 


char sample[] = "sample string";
LogBinary( sample, sizeof( sample ) );


Results with the following output in the log...

 73 61 6D 70 6C 65 20 73 74 72 69 6E 67 00 sample string.


The '.' at the end of 'sample string' is a non printable character. characters 0-31 and 127+ are printed as '.'.

Copyright (c) 2010. All rights reserved.
What do you think about this topic? Send feedback!