Shorten endian conversion method names
The consensus on #14917 was that the proposed names were too long.
This commit is contained in:
parent
779ca97525
commit
cb8ca2dafd
9 changed files with 84 additions and 84 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue