MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / fromBackwardCompatibleByte

Method fromBackwardCompatibleByte

src/common/classes/DbImplementation.cpp:221–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219}
220
221DbImplementation 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
238UCHAR DbImplementation::backwardCompatibleImplementation() const
239{

Callers

nothing calls this directly

Calls 2

DbImplementationClass · 0.85
USHORTEnum · 0.50

Tested by

no test coverage detected