1 2 3 4 5 6 7 8
#!/usr/bin/python import ldns buf = ldns.ldns_buffer(1024) buf.printf("Test buffer") print(buf)