| 115 | |
| 116 | public: |
| 117 | MemoryMapDesc(const char* s) { |
| 118 | _addr = s; |
| 119 | _end = strchr(_addr, '-') + 1; |
| 120 | _perm = strchr(_end, ' ') + 1; |
| 121 | _offs = strchr(_perm, ' ') + 1; |
| 122 | _dev = strchr(_offs, ' ') + 1; |
| 123 | _inode = strchr(_dev, ' ') + 1; |
| 124 | _file = strchr(_inode, ' '); |
| 125 | |
| 126 | if (_file != NULL) { |
| 127 | while (*_file == ' ') _file++; |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | const char* file() { return _file; } |
| 132 | bool isReadable() { return _perm[0] == 'r'; } |
nothing calls this directly
no outgoing calls
no test coverage detected