MCPcopy Create free account
hub / github.com/pybind/pybind11 / test_pointer_to_member_fn

Function test_pointer_to_member_fn

tests/test_buffers.py:148–153  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

146
147
148def test_pointer_to_member_fn():
149 for cls in [m.Buffer, m.ConstBuffer, m.DerivedBuffer]:
150 buf = cls()
151 buf.value = 0x12345678
152 value = struct.unpack("i", bytearray(buf))[0]
153 assert value == 0x12345678
154
155
156def test_readonly_buffer():

Callers

nothing calls this directly

Calls 1

bytearrayClass · 0.85

Tested by

no test coverage detected