MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / as_ptr

Method as_ptr

flow-message/src/c.rs:25–27  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

23
24impl Message {
25 pub fn as_ptr<T>(&self) -> *const T {
26 self.0.as_ref().unwrap().ptr as *const _
27 }
28
29 pub fn as_mut_ptr<T>(&mut self) -> *mut T {
30 self.0.as_mut().unwrap().ptr as *mut T

Callers 1

uget_sliceFunction · 0.80

Calls 1

as_refMethod · 0.80

Tested by

no test coverage detected