/// Point one word beyond the high end of the allocated stack
fn end(&self) -> *uint {
- unsafe {
- vec::raw::to_ptr(self.buf).offset(self.buf.len()) as *uint
- }
+ vec::raw::to_ptr(self.buf).offset(self.buf.len()) as *uint
}
}
/// Borrow a slice to a Buf
pub fn slice_to_uv_buf(v: &[u8]) -> Buf {
- let data = unsafe { vec::raw::to_ptr(v) };
+ let data = vec::raw::to_ptr(v);
unsafe { uvll::buf_init(data, v.len()) }
}
// option. This file may not be copied, modified, or distributed
// except according to those terms.
+#[cfg(stage0)]
use core;
#[deriving(Eq, IterBytes)]