chiark / gitweb /
bytestring.c, catacomb/__init__.py: Introduce and use `zero' method.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 11 May 2017 09:42:15 +0000 (10:42 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 14 May 2017 03:29:20 +0000 (04:29 +0100)
commit5a8b43b3b20b540f20877f14ecb9cb0dae8ddaf3
treed68dee99de0e0f7241d76dc87e73256b6469d573
parent8e6f45a3524f095b29e2b6bf009f4bfe66a287b7
bytestring.c, catacomb/__init__.py: Introduce and use `zero' method.

Seems like strings of zero bytes are especially useful.  Add a class
method to `ByteString' to generate them efficiently, and use it to make
the magic `Z128' constant.
bytestring.c
catacomb/__init__.py