Test if a SBValue pointer is valid
(pointer)
| 128 | |
| 129 | |
| 130 | def validPointer(pointer): |
| 131 | """Test if a SBValue pointer is valid""" |
| 132 | if not pointer.IsValid(): |
| 133 | return False |
| 134 | if pointer.GetValueAsUnsigned(0) == 0: |
| 135 | return False |
| 136 | return toSBPointer(pointer, pointer.GetValueAsUnsigned(0), pointer.GetType().GetPointeeType()).IsValid() |
| 137 | |
| 138 | |
| 139 | class AutoCacheValue(object): |
no test coverage detected