Found while exploring #90. Usually, ctypes assumes c_int for arguments and return type if no directives via argtypes and/or restype are given, but somehow this also works for passing bytes objects in places where string buffers are usually expected. Not sure if it makes sense to allow this edge case without making the argument handling overly complicated.
Found while exploring #90. Usually, ctypes assumes
c_int
for arguments and return type if no directives viaargtypes
and/orrestype
are given, but somehow this also works for passingbytes
objects in places where string buffers are usually expected. Not sure if it makes sense to allow this edge case without making the argument handling overly complicated.