mirror of
https://github.com/apple/swift-nio-imap
synced 2026-11-25 04:47:51 +00:00
* Add encoding with tests * Fix encoding * Test decodes * Finish decoding * Comments * Fix sanity * Cory PR comments * Optimise adding padding * Optimise writing string * Docs * Fix sanity * Rename UTF7 and reserve string capacity * Vendor Base64 * Fix sanity * More tests and fix a few things * Decoding error checks * Fix sanity * Add a notice file * Add validation function * PR comments * Add validation tests
10 lines
241 B
Swift
10 lines
241 B
Swift
// Courtesy of @fabianfett
|
|
// https://github.com/fabianfett/swift-base64-kit
|
|
|
|
public enum DecodingError: Error, Equatable {
|
|
case invalidLength
|
|
case invalidCharacter(UInt8)
|
|
case unexpectedPaddingCharacter
|
|
case unexpectedEnd
|
|
}
|