File: c_test.py

package info (click to toggle)
pybindgen 0.20.0%2Bdfsg1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,932 kB
  • sloc: python: 15,981; cpp: 1,889; ansic: 617; makefile: 86; sh: 4
file content (10 lines) | stat: -rw-r--r-- 203 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
import sys
sys.path.insert(0, "../../build/examples/buffer")
import c

print c.GetBufferLen()
print c.GetBufferChecksum()
buf = c.GetBuffer()
buf[10] = chr(123)
print c.GetBufferChecksum()
print buf[10]