[erlang-questions] Split integer into bytes
Kirill Zaborski
qrilka@REDACTED
Sun Jul 22 12:18:18 CEST 2007
Is there some 'normal' way to split integer (32 bits) into bytes?
Right now I do this using
[ X band 255,
(X band (255 bsl 8)) bsr 8,
(X band (255 bsl 16)) bsr 16,
(X band (255 bsl 24)) bsr 24]
Regard,
Kirill.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20070722/3e79fda0/attachment.htm>
More information about the erlang-questions
mailing list