Open vassilisw opened 4 years ago
Sorry for the late reply. Assuming this is still of interest, I’ll look into this and get back to you. Cheers.
Yep, I think there is a bug in how the stream is being constructed. My fault since I’m doing the same thing in example.cpp. Looks like the open mode is being interpreted as a Boolean here, since the third constructor argument is always interpreted as a Boolean. I think this could be refactored slightly and certainly fixed.
Hello, I was trying to decode an already encoded stream. I was not able to decode the stream correctly until after I instantiated the stream with
alwaysInitKey(true)
. Is this the right (intended) use of this parameter?Using your example something like this...