MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / ReadClassDataHeader

Method ReadClassDataHeader

Bcore/src/main/cpp/dex/dex_file.cc:704–710  ·  view source on GitHub ↗

Decodes the header section from the class data bytes.

Source from the content-addressed store, hash-verified

702
703// Decodes the header section from the class data bytes.
704void ClassDataItemIterator::ReadClassDataHeader() {
705 CHECK(ptr_pos_ != nullptr);
706 header_.static_fields_size_ = DecodeUnsignedLeb128(&ptr_pos_);
707 header_.instance_fields_size_ = DecodeUnsignedLeb128(&ptr_pos_);
708 header_.direct_methods_size_ = DecodeUnsignedLeb128(&ptr_pos_);
709 header_.virtual_methods_size_ = DecodeUnsignedLeb128(&ptr_pos_);
710}
711
712void ClassDataItemIterator::ReadClassDataField() {
713 field_.field_idx_delta_ = DecodeUnsignedLeb128(&ptr_pos_);

Callers

nothing calls this directly

Calls 1

DecodeUnsignedLeb128Function · 0.85

Tested by

no test coverage detected