mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 12:36:35 +03:00
std: Move byteswap functions to mem
This commit is contained in:
@@ -132,7 +132,7 @@ fn vuint_at_slow(data: &[u8], start: uint) -> Res {
|
||||
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user