This looks quite similar to http://doc.rust-lang.org/std/mem/fn.from_be32.html