*** empty log message ***

This commit is contained in:
Darren Ranalli 2001-03-17 03:32:40 +00:00
parent 9f49b9531a
commit bbc1435e61
2 changed files with 64 additions and 2 deletions

View File

@ -22,6 +22,24 @@
self.addFloat64(arg) self.addFloat64(arg)
elif subatomicType == STString: elif subatomicType == STString:
self.addString(arg) self.addString(arg)
elif subatomicType == STBlob:
self.addString(arg)
elif subatomicType == STInt16array:
self.addUint16(len(arg) << 1)
for i in arg:
self.addInt16(int(i*divisor))
elif subatomicType == STInt32array:
self.addUint16(len(arg) << 2)
for i in arg:
self.addInt32(int(i*divisor))
elif subatomicType == STUint16array:
self.addUint16(len(arg) << 1)
for i in arg:
self.addUint16(int(i*divisor))
elif subatomicType == STUint32array:
self.addUint16(len(arg) << 2)
for i in arg:
self.addUint32(int(i*divisor))
else: else:
raise Exception("Error: No such type as: " + subatomicType) raise Exception("Error: No such type as: " + subatomicType)
return None return None

View File

@ -24,6 +24,28 @@
retVal = self.getFloat64() retVal = self.getFloat64()
elif subatomicType == STString: elif subatomicType == STString:
retVal = self.getString() retVal = self.getString()
elif subatomicType == STBlob:
retVal = self.getString()
elif subatomicType == STInt16array:
len = self.getUint16() >> 1
retVal = []
for i in range(len):
retVal.append(self.getInt16())
elif subatomicType == STInt32array:
len = self.getUint16() >> 2
retVal = []
for i in range(len):
retVal.append(self.getInt32())
elif subatomicType == STUint16array:
len = self.getUint16() >> 1
retVal = []
for i in range(len):
retVal.append(self.getUint16())
elif subatomicType == STUint32array:
len = self.getUint16() >> 2
retVal = []
for i in range(len):
retVal.append(self.getUint32())
else: else:
raise Exception("Error: No such type as: " + str(subAtomicType)) raise Exception("Error: No such type as: " + str(subAtomicType))
else: else:
@ -48,6 +70,28 @@
retVal = self.getFloat64() retVal = self.getFloat64()
elif subatomicType == STString: elif subatomicType == STString:
retVal = self.getString() retVal = self.getString()
elif subatomicType == STBlob:
retVal = self.getString()
elif subatomicType == STInt16array:
len = self.getUint16() >> 1
retVal = []
for i in range(len):
retVal.append(self.getInt16()/float(divisor))
elif subatomicType == STInt32array:
len = self.getUint16() >> 2
retVal = []
for i in range(len):
retVal.append(self.getInt32()/float(divisor))
elif subatomicType == STUint16array:
len = self.getUint16() >> 1
retVal = []
for i in range(len):
retVal.append(self.getUint16()/float(divisor))
elif subatomicType == STUint32array:
len = self.getUint16() >> 2
retVal = []
for i in range(len):
retVal.append(self.getUint32()/float(divisor))
else: else:
raise Exception("Error: No such type as: " + str(subAtomicType)) raise Exception("Error: No such type as: " + str(subAtomicType))