Click here to Skip to main content
15,885,625 members

Comments by codetowns (Top 27 by date)

codetowns 13-Dec-17 5:51am View    
Sorry the dots were supposed to show total width as up to 8*32=256 bits. I didn't explain myself well enough.
codetowns 12-Dec-17 14:38pm View    
No, it's 32 bytes with 8 bits in each byte.
codetowns 12-Dec-17 12:23pm View    
Cack-handed is right! It revolves around the fact that I have a 32 Byte array which I have to add a byte to. I'm surprised .NET doesn't let me do it in one line!
codetowns 12-Dec-17 11:46am View    
Thanks. My C# is poor but I think I understand the idea - I have to loop it and add it manually.
codetowns 11-Dec-17 14:59pm View    
Yes, but what happens when 11111111 has 1 added to it? The subsequent byte would then need to be added to.

Is the only solutions to iterate each byte until there is no contribution from the last one?