aes_util: Make Transcode() a const member function
This doesn't modify member state, so it can be made const.
This commit is contained in:
parent
8da651ac4d
commit
b25468b498
2 changed files with 9 additions and 8 deletions
|
@ -38,11 +38,11 @@ public:
|
|||
void SetIV(std::vector<u8> iv);
|
||||
|
||||
template <typename Source, typename Dest>
|
||||
void Transcode(const Source* src, size_t size, Dest* dest, Op op) {
|
||||
void Transcode(const Source* src, size_t size, Dest* dest, Op op) const {
|
||||
Transcode(reinterpret_cast<const u8*>(src), size, reinterpret_cast<u8*>(dest), op);
|
||||
}
|
||||
|
||||
void Transcode(const u8* src, size_t size, u8* dest, Op op);
|
||||
void Transcode(const u8* src, size_t size, u8* dest, Op op) const;
|
||||
|
||||
template <typename Source, typename Dest>
|
||||
void XTSTranscode(const Source* src, size_t size, Dest* dest, size_t sector_id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue