| 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 { |
nothing calls this directly
no outgoing calls
no test coverage detected