/foundation/communication/netmanager_base/utils/common_utils/src/ |
H A D | base64_utils.cpp | 64 static inline void MakeCharFour(const std::array<uint8_t, CHAR_ARRAY_LENGTH_THREE> &charArrayThree, in MakeCharFour() argument 68 static_cast<uint8_t>((charArrayThree[BASE64_ENCODE_INDEX0] & BASE64_ENCODE_MASK1) >> BASE64_ENCODE_OFFSET2), in MakeCharFour() 69 static_cast<uint8_t>(((charArrayThree[BASE64_ENCODE_INDEX0] & BASE64_ENCODE_MASK2) << BASE64_ENCODE_OFFSET4) + in MakeCharFour() 70 ((charArrayThree[BASE64_ENCODE_INDEX1] & BASE64_ENCODE_MASK5) >> BASE64_ENCODE_OFFSET4)), in MakeCharFour() 71 static_cast<uint8_t>(((charArrayThree[BASE64_ENCODE_INDEX1] & BASE64_ENCODE_MASK3) << BASE64_ENCODE_OFFSET2) + in MakeCharFour() 72 ((charArrayThree[BASE64_ENCODE_INDEX2] & BASE64_ENCODE_MASK6) >> BASE64_ENCODE_OFFSET6)), in MakeCharFour() 73 static_cast<uint8_t>(charArrayThree[BASE64_ENCODE_INDEX2] & BASE64_ENCODE_MASK4), in MakeCharFour() 81 std::array<uint8_t, CHAR_ARRAY_LENGTH_THREE> &charArrayThree) in MakeCharTree() 92 charArrayThree[index] = table[index]; in MakeCharTree() 101 std::array<uint8_t, CHAR_ARRAY_LENGTH_THREE> charArrayThree in Encode() local 80 MakeCharTree(const std::array<uint8_t, CHAR_ARRAY_LENGTH_FOUR> &charArrayFour, std::array<uint8_t, CHAR_ARRAY_LENGTH_THREE> &charArrayThree) MakeCharTree() argument 141 std::array<uint8_t, CHAR_ARRAY_LENGTH_THREE> charArrayThree = {0}; Decode() local [all...] |
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/common/ |
H A D | base64_utils.cpp | 64 static void MakeCharFour(const std::array<uint8_t, CHAR_ARRAY_LENGTH_THREE> &charArrayThree, in MakeCharFour() argument 68 static_cast<uint8_t>((charArrayThree[BASE64_ENCODE_INDEX0] & BASE64_ENCODE_MASK1) >> BASE64_ENCODE_OFFSET2), in MakeCharFour() 69 static_cast<uint8_t>(((charArrayThree[BASE64_ENCODE_INDEX0] & BASE64_ENCODE_MASK2) << BASE64_ENCODE_OFFSET4) + in MakeCharFour() 70 ((charArrayThree[BASE64_ENCODE_INDEX1] & BASE64_ENCODE_MASK5) >> BASE64_ENCODE_OFFSET4)), in MakeCharFour() 71 static_cast<uint8_t>(((charArrayThree[BASE64_ENCODE_INDEX1] & BASE64_ENCODE_MASK3) << BASE64_ENCODE_OFFSET2) + in MakeCharFour() 72 ((charArrayThree[BASE64_ENCODE_INDEX2] & BASE64_ENCODE_MASK6) >> BASE64_ENCODE_OFFSET6)), in MakeCharFour() 73 static_cast<uint8_t>(charArrayThree[BASE64_ENCODE_INDEX2] & BASE64_ENCODE_MASK4), in MakeCharFour() 81 std::array<uint8_t, CHAR_ARRAY_LENGTH_THREE> &charArrayThree) in MakeCharTree() 92 charArrayThree[index] = table[index]; in MakeCharTree() 101 std::array<uint8_t, CHAR_ARRAY_LENGTH_THREE> charArrayThree in Encode() local 80 MakeCharTree(const std::array<uint8_t, CHAR_ARRAY_LENGTH_FOUR> &charArrayFour, std::array<uint8_t, CHAR_ARRAY_LENGTH_THREE> &charArrayThree) MakeCharTree() argument 141 std::array<uint8_t, CHAR_ARRAY_LENGTH_THREE> charArrayThree = { 0 }; Decode() local [all...] |
/foundation/communication/netstack/frameworks/js/napi/http/cache/base64/src/ |
H A D | base64_utils.cpp | 64 static inline void MakeCharFour(const std::array<uint8_t, CHAR_ARRAY_LENGTH_THREE> &charArrayThree, in MakeCharFour() argument 68 static_cast<uint8_t>((charArrayThree[BASE64_ENCODE_INDEX0] & BASE64_ENCODE_MASK1) >> BASE64_ENCODE_OFFSET2), in MakeCharFour() 69 static_cast<uint8_t>(((charArrayThree[BASE64_ENCODE_INDEX0] & BASE64_ENCODE_MASK2) << BASE64_ENCODE_OFFSET4) + in MakeCharFour() 70 ((charArrayThree[BASE64_ENCODE_INDEX1] & BASE64_ENCODE_MASK5) >> BASE64_ENCODE_OFFSET4)), in MakeCharFour() 71 static_cast<uint8_t>(((charArrayThree[BASE64_ENCODE_INDEX1] & BASE64_ENCODE_MASK3) << BASE64_ENCODE_OFFSET2) + in MakeCharFour() 72 ((charArrayThree[BASE64_ENCODE_INDEX2] & BASE64_ENCODE_MASK6) >> BASE64_ENCODE_OFFSET6)), in MakeCharFour() 73 static_cast<uint8_t>(charArrayThree[BASE64_ENCODE_INDEX2] & BASE64_ENCODE_MASK4), in MakeCharFour() 81 std::array<uint8_t, CHAR_ARRAY_LENGTH_THREE> &charArrayThree) in MakeCharTree() 92 charArrayThree[index] = table[index]; in MakeCharTree() 104 std::array<uint8_t, CHAR_ARRAY_LENGTH_THREE> charArrayThree in Encode() local 80 MakeCharTree(const std::array<uint8_t, CHAR_ARRAY_LENGTH_FOUR> &charArrayFour, std::array<uint8_t, CHAR_ARRAY_LENGTH_THREE> &charArrayThree) MakeCharTree() argument 148 std::array<uint8_t, CHAR_ARRAY_LENGTH_THREE> charArrayThree = {0}; Decode() local [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/ |
H A D | db_base64_utils.cpp | 64 static void MakeCharFour(const std::array<uint8_t, CHAR_ARRAY_LENGTH_THREE> &charArrayThree, in MakeCharFour() argument 68 static_cast<uint8_t>((charArrayThree[static_cast<uint8_t>(BASE64_ENCODE_CONSTANT::BASE64_ENCODE_INDEX0)] & in MakeCharFour() 71 static_cast<uint8_t>(((charArrayThree[static_cast<uint8_t>(BASE64_ENCODE_CONSTANT::BASE64_ENCODE_INDEX0)] & in MakeCharFour() 74 ((charArrayThree[static_cast<uint8_t>(BASE64_ENCODE_CONSTANT::BASE64_ENCODE_INDEX1)] & in MakeCharFour() 77 static_cast<uint8_t>(((charArrayThree[static_cast<uint8_t>(BASE64_ENCODE_CONSTANT::BASE64_ENCODE_INDEX1)] & in MakeCharFour() 80 ((charArrayThree[static_cast<uint8_t>(BASE64_ENCODE_CONSTANT::BASE64_ENCODE_INDEX2)] & in MakeCharFour() 83 static_cast<uint8_t>(charArrayThree[static_cast<uint8_t>(BASE64_ENCODE_CONSTANT::BASE64_ENCODE_INDEX2)] & in MakeCharFour() 92 std::array<uint8_t, CHAR_ARRAY_LENGTH_THREE> &charArrayThree) in MakeCharTree() 112 charArrayThree[index] = table[index]; in MakeCharTree() 121 std::array<uint8_t, CHAR_ARRAY_LENGTH_THREE> charArrayThree in Encode() local 91 MakeCharTree(const std::array<uint8_t, CHAR_ARRAY_LENGTH_FOUR> &charArrayFour, std::array<uint8_t, CHAR_ARRAY_LENGTH_THREE> &charArrayThree) MakeCharTree() argument 161 std::array<uint8_t, CHAR_ARRAY_LENGTH_THREE> charArrayThree = { 0 }; Decode() local [all...] |
/foundation/communication/netstack/frameworks/cj/http/src/ |
H A D | net_http_utils.cpp | 179 static inline void MakeCharFour(const std::array<uint8_t, CHAR_ARRAY_LENGTH_THREE> &charArrayThree, in GetNowTimeGMT() argument 183 static_cast<uint8_t>((charArrayThree[BASE64_ENCODE_INDEX0] & BASE64_ENCODE_MASK1) >> BASE64_ENCODE_OFFSET2), in GetNowTimeGMT() 184 static_cast<uint8_t>(((charArrayThree[BASE64_ENCODE_INDEX0] & BASE64_ENCODE_MASK2) << BASE64_ENCODE_OFFSET4) + in GetNowTimeGMT() 185 ((charArrayThree[BASE64_ENCODE_INDEX1] & BASE64_ENCODE_MASK5) >> BASE64_ENCODE_OFFSET4)), in GetNowTimeGMT() 186 static_cast<uint8_t>(((charArrayThree[BASE64_ENCODE_INDEX1] & BASE64_ENCODE_MASK3) << BASE64_ENCODE_OFFSET2) + in GetNowTimeGMT() 187 ((charArrayThree[BASE64_ENCODE_INDEX2] & BASE64_ENCODE_MASK6) >> BASE64_ENCODE_OFFSET6)), in GetNowTimeGMT() 188 static_cast<uint8_t>(charArrayThree[BASE64_ENCODE_INDEX2] & BASE64_ENCODE_MASK4), in GetNowTimeGMT() 196 std::array<uint8_t, CHAR_ARRAY_LENGTH_THREE> &charArrayThree) in GetNowTimeGMT() 207 charArrayThree[index] = table[index]; in GetNowTimeGMT() 219 std::array<uint8_t, CHAR_ARRAY_LENGTH_THREE> charArrayThree in GetNowTimeGMT() local 195 MakeCharTree(const std::array<uint8_t, CHAR_ARRAY_LENGTH_FOUR> &charArrayFour, std::array<uint8_t, CHAR_ARRAY_LENGTH_THREE> &charArrayThree) GetNowTimeGMT() argument 263 std::array<uint8_t, CHAR_ARRAY_LENGTH_THREE> charArrayThree = {0}; GetNowTimeGMT() local [all...] |