19 lines
221 B
Plaintext
19 lines
221 B
Plaintext
ns std::unsafe
|
|
|
|
pub int Pointer<T> {}
|
|
|
|
impl PointerImpl<T> {
|
|
|
|
fld raw_address: Long
|
|
fld size: Long
|
|
|
|
decl ctor(size: Long)
|
|
|
|
}
|
|
|
|
pub mod mem {
|
|
|
|
pub fn <T> alloc(size: Long): Pointer<T> = PointerImpl(size)
|
|
|
|
}
|