MCPcopy Create free account
hub / github.com/aclements/libelfin / cstr

Method cstr

dwarf/cursor.cc:92–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92const char *
93cursor::cstr(size_t *size_out)
94{
95 // Scan string size
96 const char *p = pos;
97 while (pos < sec->end && *pos)
98 pos++;
99 if (pos == sec->end)
100 throw format_error("unterminated string");
101 if (size_out)
102 *size_out = pos - p;
103 pos++;
104 return p;
105}
106
107void
108cursor::skip_form(DW_FORM form)

Callers 2

stringMethod · 0.95
as_cstrMethod · 0.80

Calls 1

format_errorClass · 0.70

Tested by

no test coverage detected