コード例 #1
0
ファイル: test_ffi.py プロジェクト: filmackay/flypy
 def func(x):
     return ffi.sizeof(x)
コード例 #2
0
ファイル: boehm.py プロジェクト: pombreda/flypy
def gc_delalloc(items, type):
    p = gc.boehm_malloc(items * sizeof(type))

    return cast(p, Pointer[type])
コード例 #3
0
ファイル: boehm.py プロジェクト: jakebolewski/flypy
def gc_delalloc(items, type):
    p = gc.boehm_malloc(items * sizeof(type))

    return cast(p, Pointer[type])