čtvrtek 26. března 2015

Version 1.1.0 released

The Base64Stream library has been updated today.

Version 1.1.0 fixes the wrapped data decoding issue and now handles wrapping automatically during decoding. Both standard wrapping modes (after 64 or 76 characters) are supported by Decode function (while any other non-standard wrapping will still result in a corrupted output).

This version also introduces encoding options that enables you to control the wrapping also during Base64 encoding. The Encode function has been extended by an optional numerical parameter.
Use EncodeOptions enumeration to set the wrapping behavior. Possible values are:
Encode_Default (0)
Encode_Wrap_64 (1)
Encode_Wrap_76 (2)

By default, the Encode_Default option is on, resulting in a single-line Base64 output.


In favor of possible future development the options parameter is processed bit-wise by the Encode function to enable setting multiple options at once, although it makes no sense at the moment - only one of the three possible options will take effect in current version (if wrapping is requested and both 64 and 76 flags are set, the 64 wrapping has a higher priority).

Žádné komentáře:

Okomentovat