Traversing a binary

Raimo Niskanen raimo@REDACTED
Tue Sep 21 17:16:05 CEST 2004


Post your code, there are fast and slow ways to traverse a binary.

paris@REDACTED (Javier París Fernández) writes:

> Hi,
> 
> I need to add all the two-byte pairs of a binary to make a checksum.
> Using the bit syntax is correct, but too slow. Is there a way to have
> some "iterator" over its contents without having to do pattern matching
> on the binary(Which is slow) ?
> 
> Thanks.
> 

-- 

/ Raimo Niskanen, Erlang/OTP, Ericsson AB



More information about the erlang-questions mailing list