def buffer(object, offset, size): # pylint: disable=W0622
        return object[offset:offset + size]
array etc. have the buffer protocol
dataset/ETHPy150Open pika/pika/tests/acceptance/forward_server.py/buffer