My Shifting and endian foo is a little rusty. Im pretty sure this is correct, but just to check, is this magic tested?