def buffer(self, byte_offset=0):
        contents = self.ptr.contents
        ptr = addressof(contents.buffer.contents) + byte_offset
        length = contents.length * 4 - byte_offset
        return buffer((c_char * length).from_address(ptr).raw) \
            if length else None
Get a copy of the array buffer
dataset/ETHPy150Open chriso/gauged/gauged/structures/float_array.py/FloatArray.buffer