|
|
@@ -31,8 +31,14 @@ class EncryptedStream : public bd::Stream {
|
|
|
|
|
|
public:
|
|
|
EncryptedStream(const char* keyStr) : Stream(), key(bd::String(keyStr)), enc_flags(ENC_DEFAULT) {};
|
|
|
- EncryptedStream(bd::String& keyStr) : Stream(), key(keyStr), enc_flags(ENC_DEFAULT) {};
|
|
|
- EncryptedStream(EncryptedStream& stream) : Stream(stream), key(stream.key), enc_flags(ENC_DEFAULT) {};
|
|
|
+ EncryptedStream(const bd::String& keyStr) : Stream(), key(keyStr), enc_flags(ENC_DEFAULT) {};
|
|
|
+ EncryptedStream(bd::String&& keyStr) noexcept :
|
|
|
+ Stream(), key(std::move(keyStr)), enc_flags(ENC_DEFAULT) {};
|
|
|
+ EncryptedStream(const EncryptedStream& stream) : Stream(stream), key(stream.key), enc_flags(ENC_DEFAULT) {};
|
|
|
+ EncryptedStream(EncryptedStream&& stream) noexcept :
|
|
|
+ Stream(std::move(stream)),
|
|
|
+ key(std::move(stream.key)),
|
|
|
+ enc_flags(ENC_DEFAULT) {};
|
|
|
|
|
|
inline void setFlags(const char _enc_flags) const noexcept {
|
|
|
enc_flags = _enc_flags;
|