Changes to use new endian inlines from FTK.

git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@460 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
ahodgkinson
2006-05-25 15:26:08 +00:00
parent abc5c5650e
commit 96edbc5f55
7 changed files with 19 additions and 27 deletions

View File

@@ -965,7 +965,7 @@ RCODE F_DataVector::outputKey(
goto Exit;
}
f_UINT32ToByte( (FLMUINT32)uiNum, pucToKey);
f_UINT32ToBigEndian( (FLMUINT32)uiNum, pucToKey);
uiToKeyLen = 4;
}
else if (pIcd->uiFlags & ICD_METAPHONE)
@@ -1260,7 +1260,8 @@ RCODE F_DataVector::inputKey(
rc = RC_SET_AND_ASSERT( NE_XFLM_BTREE_ERROR);
goto Exit;
}
uiNum = (FLMUINT)f_byteToUINT32( pucKey);
uiNum = (FLMUINT)f_bigEndianToUINT32( pucKey);
// What is stored in the key better match the dictionary
// number of the ICD.