def nativeTypeEnumDisplay(self, nativeType, addr): value = cdbext.createValue(addr, nativeType) if value is None: return '' enumDisplay = value.nativeDebuggerValue() # remove '0n' decimal prefix of the native cdb value output return enumDisplay.replace('(0n', '(')
def nativeTypeEnumDisplay(self, nativeType, addr, form): value = cdbext.createValue(addr, nativeType) if value is None: return '' enumDisplay = value.nativeDebuggerValue() # remove '0n' decimal prefix of the native cdb value output return enumDisplay.replace('(0n', '(')
def listFields(self, nativeType, value): if value.address() is None or value.address() == 0: raise Exception("") nativeValue = cdbext.createValue(value.address(), nativeType) index = 0 nativeMember = nativeValue.childFromIndex(index) while nativeMember is not None: yield self.fromNativeValue(nativeMember) index += 1 nativeMember = nativeValue.childFromIndex(index)
def listFields(self, nativeType, value): if value.address() is None or value.address() == 0: raise Exception("") nativeValue = cdbext.createValue(value.address(), nativeType) index = 0 nativeMember = nativeValue.childFromIndex(index) while nativeMember is not None: yield self.fromNativeValue(nativeMember) index += 1 nativeMember = nativeValue.childFromIndex(index)
def nativeTypeEnumDisplay(self, nativeType, addr, form): value = cdbext.createValue(addr, nativeType) if value is None: return '' return enumDisplay(value)