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

Method GetMethodAnnotations

Bcore/src/main/cpp/dex/dex_file.h:803–812  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

801 }
802
803 const MethodAnnotationsItem* GetMethodAnnotations(const AnnotationsDirectoryItem* anno_dir)
804 const {
805 if (anno_dir->methods_size_ == 0) {
806 return nullptr;
807 }
808 // Skip past the header and field annotations.
809 const uint8_t* addr = reinterpret_cast<const uint8_t*>(&anno_dir[1]);
810 addr += anno_dir->fields_size_ * sizeof(FieldAnnotationsItem);
811 return reinterpret_cast<const MethodAnnotationsItem*>(addr);
812 }
813
814 const ParameterAnnotationsItem* GetParameterAnnotations(const AnnotationsDirectoryItem* anno_dir)
815 const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected