mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +00:00
added transferSize() method
This commit is contained in:
parent
a12bbff857
commit
953dc1a079
1 changed files with 6 additions and 0 deletions
|
|
@ -68,6 +68,9 @@ class FixedInputOutputBufferType(InputOnlyType):
|
|||
self.size)
|
||||
Output("goto %s__error__;", name)
|
||||
OutRbrace()
|
||||
self.transferSize()
|
||||
|
||||
def transferSize():
|
||||
Output("%s__len__ = %s__in_len__;", name, name)
|
||||
|
||||
def passOutput(self, name):
|
||||
|
|
@ -171,6 +174,9 @@ class StructInputOutputBufferType(FixedInputOutputBufferType):
|
|||
def getargsArgs(self, name):
|
||||
return "(char **)&%s__in__, &%s__in_len__" % (name, name)
|
||||
|
||||
def transferSize(self):
|
||||
pass
|
||||
|
||||
def passInput(self, name):
|
||||
return "%s__in__" % name
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue