kbmMW Features #1 – Pretty binary

The new kbmMW Features blog post serie will talk about various smaller, but useful, features within kbmMW. This blog will be about the new upcoming TkbmMWPrettyBinary class found in kbmMWGlobal.pas.

kbmMW’s logging framework has for quite a while had the ability to convert binary data to “pretty” readable string data. Since such a feature can have broader use cases, I decided to extract it  from the logging framework into a selfcontained class of its own.

It is very simple to use:

By setting the property bp.PrettyChar[AIndex:TkbmMWBPPrettyChar]:string its possible to change the conversion of supported binary characters.


There are various formatting options available for each of the methods, and overloaded versions operating on TkbmMWStringBuilder is also available.

 398 total views,  2 views today

Author: kimbomadsen

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.