MCPcopy Create free account
hub / github.com/diem/move / new_cursor

Method new_cursor

language/move-binary-format/src/file_format_common.rs:438–443  ·  view source on GitHub ↗
(&self, start: usize, end: usize)

Source from the content-addressed store, hash-verified

436 }
437
438 pub fn new_cursor(&self, start: usize, end: usize) -> VersionedCursor<'a> {
439 VersionedCursor {
440 version: self.version,
441 cursor: Cursor::new(&self.binary[start..end]),
442 }
443 }
444
445 pub fn slice(&self, start: usize, end: usize) -> &'a [u8] {
446 &self.binary[start..end]

Callers 13

load_module_handlesFunction · 0.80
load_struct_handlesFunction · 0.80
load_function_handlesFunction · 0.80
load_identifiersFunction · 0.80
load_constant_poolFunction · 0.80
load_metadataFunction · 0.80
load_signaturesFunction · 0.80
load_struct_defsFunction · 0.80
load_function_defsFunction · 0.80
load_field_handlesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected