MCPcopy Index your code
hub / github.com/python/mypy / CString

Class CString

mypyc/ir/ops.py:240–250  ·  view source on GitHub ↗

C string literal (zero-terminated). You can also include zero values in the value, but then you'll need to track the length of the string separately.

Source from the content-addressed store, hash-verified

238
239@final
240class CString(Value):
241 """C string literal (zero-terminated).
242
243 You can also include zero values in the value, but then you'll need to track
244 the length of the string separately.
245 """
246
247 def __init__(self, value: bytes, line: int = -1) -> None:
248 self.value = value
249 self.type = cstring_rprimitive
250 self.line = line
251
252
253@final

Callers 2

test_c_stringMethod · 0.90
log_eventMethod · 0.90

Calls

no outgoing calls

Tested by 1

test_c_stringMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…