Traversing a binary
Tue Sep 21 17:16:05 CEST 2004
Post your code, there are fast and slow ways to traverse a binary.
(Javier París Fernández) writes:
> 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) ?
/ Raimo Niskanen, Erlang/OTP, Ericsson AB
More information about the erlang-questions