** Query bitmap object pMap for the state of the bit associated with page ** iPg. Return 1 if it is set, or 0 otherwise. */
| 13879 | ** iPg. Return 1 if it is set, or 0 otherwise. |
| 13880 | */ |
| 13881 | static int recoverBitmapQuery(RecoverBitmap *pMap, i64 iPg){ |
| 13882 | int ret = 1; |
| 13883 | if( iPg<=pMap->nPg && iPg>0 ){ |
| 13884 | int iElem = (iPg / 32); |
| 13885 | int iBit = (iPg % 32); |
| 13886 | ret = (pMap->aElem[iElem] & (((u32)1) << iBit)) ? 1 : 0; |
| 13887 | } |
| 13888 | return ret; |
| 13889 | } |
| 13890 | |
| 13891 | /* |
| 13892 | ** Set the recover handle error to the error code and message returned by |
no outgoing calls
no test coverage detected