diff options
author | Armin Rigo <arigo@tunes.org> | 2014-12-28 06:12:30 +0100 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2014-12-28 06:12:30 +0100 |
commit | dc54dd9861e54f2d8ca7a600f3db37b653a00657 (patch) | |
tree | b00e407c98056f4a98dcd7154eb9ea92958bf70a /cffi/model.py | |
parent | f9e897d469c568f18a6c902de1559d522f999578 (diff) | |
download | cffi-dc54dd9861e54f2d8ca7a600f3db37b653a00657.tar.gz |
Fight a lot the CPython buffer/memoryview interface until we get a
hopefully not-too-buggy ffi.from_buffer(). Obviously it's only
half-tested because 2.7 doesn't really have built-in memoryview objects.
Diffstat (limited to 'cffi/model.py')
-rw-r--r-- | cffi/model.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cffi/model.py b/cffi/model.py index 371153f..195c5ea 100644 --- a/cffi/model.py +++ b/cffi/model.py @@ -235,6 +235,8 @@ class ArrayType(BaseType): BPtrItem = PointerType(self.item).get_cached_btype(ffi, finishlist) return global_cache(self, ffi, 'new_array_type', BPtrItem, self.length) +char_array_type = ArrayType(PrimitiveType('char'), None) + class StructOrUnionOrEnum(BaseTypeByIdentity): _attrs_ = ('name',) |