Completely re-write base64 logic, make API suck less in doing so
This commit is contained in:
committed by
Patrick Niklaus
parent
735b325d74
commit
a7aa27c87c
+2
-2
@@ -18,13 +18,13 @@ bool Hint::IsValid(const util::Coordinate new_input_coordinates,
|
||||
facade.GetCheckSum() == data_checksum;
|
||||
}
|
||||
|
||||
std::string Hint::ToBase64() const { return encodeBase64(*this); }
|
||||
std::string Hint::ToBase64() const { return encodeBase64Bytewise(*this); }
|
||||
|
||||
Hint Hint::FromBase64(const std::string &base64Hint)
|
||||
{
|
||||
BOOST_ASSERT_MSG(base64Hint.size() == ENCODED_HINT_SIZE, "Hint has invalid size");
|
||||
|
||||
return decodeBase64<Hint>(base64Hint);
|
||||
return decodeBase64Bytewise<Hint>(base64Hint);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user