Exemplo n.º 1
0
def test_crc32_cffi():
    from snappy_cffi import ffi, C

    assert C._crc32c

    data = ffi.new('char[]', b'hello')
    size = len(b'hello')

    assert C._crc32c(data, size)
Exemplo n.º 2
0
def test_crc32_cffi():
    from snappy_cffi import ffi, C

    assert C._crc32c

    data = ffi.new('char[]', b'hello')
    size = len(b'hello')

    assert C._crc32c(data, size)