Sack Library Documentation
sack::logging::LogBinary Function
SYSLOG_PROC void SYSLOG_API LogBinary(P_8 buffer, size_t 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 '.'.

Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at
Copyright (c) 2000+. All rights reserved.
What do you think about this topic? Send feedback!