Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytecodealliance/wasmtime
/ is_oom_ptr
Method
is_oom_ptr
crates/core/src/error/error.rs:1585–1587 ·
view source on GitHub ↗
(ptr: NonNull<u8>)
Source
from the content-addressed store, hash-verified
1583
}
1584
1585
fn is_oom_ptr(ptr: NonNull<u8>) -> bool {
1586
(ptr.addr().get() & Self::OOM_BIT) == Self::OOM_BIT
1587
}
1588
1589
fn is_oom(&self) -> bool {
1590
Self::is_oom_ptr(self.inner)
Callers
nothing calls this directly
Calls
2
get
Method · 0.45
addr
Method · 0.45
Tested by
no test coverage detected