GitXplorerGitXplorer
a

zero_buffer

public
134 stars
11 forks
5 issues

Commits

List of commits on branch master.
Unverified
de784e01fd8dc9762087653959e391a675d9e50d

try this?

aalex committed 8 years ago
Unverified
b5a6ad4f606962cd0feba329d2229c5d6d4906c3

travis fix?

aalex committed 8 years ago
Unverified
743e347a28123789586c2085bb41f106517cf6d8

Added py35, py36 to tests, cleanup travis config, fix docs

aalex committed 8 years ago
Unverified
7d75aefaf9f9fc319acdc7665112bf0b044ff974

Drop python 3.2 testing as pip no longer supports that version. (#14)

ttomprince committed 8 years ago
Unverified
c2fe2de8bdac35c776d8d5b5c1c0025b77430651

Merge pull request #13 from adamchainz/readthedocs.io

aalex committed 9 years ago
Unverified
42613feaacd9f2576e067408feb7bf69da806fc0

Convert readthedocs links for their .org -> .io migration for hosted projects

committed 9 years ago

README

The README file for this repository.

zero_buffer

.. image:: https://travis-ci.org/alex/zero_buffer.png?branch=master :target: https://travis-ci.org/alex/zero_buffer

zero_buffer is a high-performance, zero-copy, implementation of a byte-buffer for Python.

Documentation_ is available on ReadTheDocs.

.. code-block:: python

from zero_buffer import Buffer

# Create a buffer which has space for 8192 bytes.
b = Buffer.allocate(8192)
with open(path, "rb") as f:
    # Read up to 8192 bytes from the file into the buffer
    b.read_from(f.fileno())
# Create a read-only view of the buffer, this performs no copying.
view = b.view()
# Split the view on colons, this returns a generator which yields sub-views
# of the view.
for part in view.split(b":"):
    print(part)

zero_buffer works on Python 2.6, 2.7, 3.3+, and PyPy.

.. _Documentation: https://zero-buffer.readthedocs.io/en/latest/