std: Move byteswap functions to mem

This commit is contained in:
Brian Anderson 2014-02-09 00:17:37 -08:00
parent c7710cdf45
commit 073b655187
8 changed files with 43 additions and 41 deletions

View file

@ -132,7 +132,7 @@ pub mod reader {
pub fn vuint_at(data: &[u8], start: uint) -> Res {
use std::ptr::offset;
use std::unstable::intrinsics::from_be32;
use std::mem::from_be32;
if data.len() - start < 4 {
return vuint_at_slow(data, start);