[jdev] SASL debugging

Yves Goergen nospam.list at unclassified.de
Fri Dec 9 10:18:09 CST 2005

On 09.12.2005 16:24 (+0100), Norman Rasmussen wrote:
> if you have a byte array like this:  40,03,06,23
> the old code generates: 403623, and it should generate 40030623

No, this is what the "2" in "x2" is already there for. If I wrote only
"x", I'd get each value in variable width.

> On 12/9/05, Yves Goergen <nospam.list at unclassified.de> wrote:
>>On 09.12.2005 15:23 (+0100), Norman Rasmussen wrote:
>>>this is breaking stuff:
>>>foreach (byte b in n)
>>>    hex += b.ToString("x2");
>>>foreach (byte b in n)
>>>    hex += b.ToString("x02");

Yves Goergen "LonelyPixel" <nospam.list at unclassified.de>
"Does the movement of the trees make the wind blow?"
http://newsboard.unclassified.de - Unclassified NewsBoard Forum

More information about the JDev mailing list