MCPcopy Create free account
hub / github.com/cretz/stackparam / read_constant_pool_index

Method read_constant_pool_index

src/bytecode/io/reader.rs:844–849  ·  view source on GitHub ↗
(reader: &mut BlockReader)

Source from the content-addressed store, hash-verified

842 }
843
844 fn read_constant_pool_index(reader: &mut BlockReader) -> Result<ConstantPoolIndex, Error> {
845 match reader.read_u16() {
846 Ok(idx) => Ok(ConstantPoolIndex::new(idx as usize)),
847 Err(err) => Err(err)
848 }
849 }
850
851 fn require_n<T, U>(reader: &mut BlockReader, count: usize, extractor: U) -> Result<T, Error> where U: Fn(BlockReader) -> T {
852 match reader.read_n(count) {

Callers

nothing calls this directly

Calls 1

read_u16Method · 0.80

Tested by

no test coverage detected