| 1958 | uint64_t getAddress() const noexcept { return LLVMGetSectionAddress(Ref); } |
| 1959 | uint64_t getSize() const noexcept { return LLVMGetSectionSize(Ref); } |
| 1960 | Span<const uint8_t> getContents() const noexcept { |
| 1961 | return {reinterpret_cast<const uint8_t *>(LLVMGetSectionContents(Ref)), |
| 1962 | static_cast<size_t>(LLVMGetSectionSize(Ref))}; |
| 1963 | } |
| 1964 | |
| 1965 | inline bool isText() const noexcept; |
| 1966 | inline bool isData() const noexcept; |