EnumerationFoundation5.9.0
DataEncodingStrategy
The strategy to use for encoding Data
values.
enum DataEncodingStrategy
Citizens in Foundation
Members
case base64
Encoded the
Data
as a Base64-encoded string. This is the default strategy.case custom((Data, Encoder) throws -> Void)
Encode the
Data
as a custom value encoded by the given closure.case deferredToData
Defer to
Data
for choosing an encoding.