| 219 | } |
| 220 | |
| 221 | DbImplementation DbImplementation::fromBackwardCompatibleByte(UCHAR bcImpl) |
| 222 | { |
| 223 | for (UCHAR os = 0; os < FB_NELEM(operatingSystem); ++os) |
| 224 | { |
| 225 | for (UCHAR hw = 0; hw < FB_NELEM(hardware); ++hw) |
| 226 | { |
| 227 | USHORT ind = USHORT(os) * FB_NELEM(hardware) + USHORT(hw); |
| 228 | if (backwardTable[ind] == bcImpl) |
| 229 | { |
| 230 | return DbImplementation(hw, os, 0xFF, backEndianess[hw] ? EndianBig : EndianLittle); |
| 231 | } |
| 232 | } |
| 233 | } |
| 234 | |
| 235 | return DbImplementation(0xFF, 0xFF, 0xFF, 0x80); |
| 236 | } |
| 237 | |
| 238 | UCHAR DbImplementation::backwardCompatibleImplementation() const |
| 239 | { |
nothing calls this directly
no test coverage detected