Definition at line 14 of file BinHex.h. Referenced by Impala::Persistency::ImageArchiveRepositoryInMonet::Add(), Impala::Persistency::FeatureTableRepositoryInMonet::Add(), Impala::Samples::MonetTest::DoInsertFeatures(), and Impala::Samples::MonetTest::DoInsertFrameArchive(). 00015 { 00016 const char lookup[] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 00017 'A', 'B', 'C', 'D', 'E', 'F'}; 00018 00019 String res; 00020 for (size_t i=0 ; i<dataSize ; i++) 00021 { 00022 Int8 hi = (data[i] & 0xF0) >> 4; 00023 Int8 lo = data[i] & 0x0F; 00024 res += lookup[hi]; 00025 res += lookup[lo]; 00026 } 00027 return res; 00028 }
|