Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cretz/stackparam
/ cp_size
Method
cp_size
src/bytecode/classfile.rs:169–176 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
167
168
impl Constant {
169
pub fn cp_size(&self) -> usize {
170
match self {
171
&Constant::Long(_) => 2,
172
&Constant::Double(_) => 2,
173
&Constant::Placeholder => 0,
174
_ => 1
175
}
176
}
177
}
178
179
#[derive(Debug)]
Callers
1
read_constant_pool
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected