Refactoring

This commit is contained in:
Ali
2021-08-04 01:30:57 +02:00
parent f675add6f9
commit 2d66131682
179 changed files with 691 additions and 467 deletions

View File

@@ -0,0 +1,14 @@
import Foundation
import Postbox
public final class EngineEncoder {
public static func encode(_ value: Encodable) throws -> Data {
return try AdaptedPostboxEncoder().encode(value)
}
}
public final class EngineDecoder {
public static func decode<T>(_ type: T.Type, from data: Data) throws -> T where T : Decodable {
return try AdaptedPostboxDecoder().decode(type, from: data)
}
}