added transferSize() method

This commit is contained in:
Guido van Rossum 1995-05-03 17:36:54 +00:00
parent a12bbff857
commit 953dc1a079
1 changed files with 6 additions and 0 deletions

View File

@ -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