Logo
Explore Help
Register Sign In
IQ.Lvbs/pycapnp
1
0
Fork 0
You've already forked pycapnp
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
684f8ead708e2e67fc0f727bf12efa92600b8b3f
pycapnp/test/test_regression.py
Kenton Varda 1cfea9c846 Add shortcuts for reading from / writing to files. In Python, it doesn't make much sense to force people to muck around with MessageReaders and MessageBuilders since everything is landing on the heap anyway. Instead, let's make it easy: MyType.read[Packed]From(file) reads a file and returns a MyType reader. MyType.newMessage() returns a MyType builder representing the root of a new message. You can call this builder's write[Packed]To(file) method to write it to a file.
2013-08-31 18:19:02 -07:00

12 KiB
Raw Blame History

View Raw
Reference in New Issue View Git Blame Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 843ms Template: 134ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API