Shorten endian conversion method names

The consensus on #14917 was that the proposed names were too long.
This commit is contained in:
Brendan Zabarauskas 2014-06-17 15:47:31 -07:00 committed by Alex Crichton
parent 779ca97525
commit cb8ca2dafd
9 changed files with 84 additions and 84 deletions

View file

@ -183,7 +183,7 @@ pub mod reader {
unsafe {
let ptr = data.as_ptr().offset(start as int) as *u32;
let val = Int::from_big_endian(*ptr);
let val = Int::from_be(*ptr);
let i = (val >> 28u) as uint;
let (shift, mask) = SHIFT_MASK_TABLE[i];