More efficient way to cut buffer in DHexDump ()