mirror of
https://github.com/ichmagmaus111/ghostgram.git
synced 2026-11-19 13:14:09 +01:00
Ghostgram for iOS, rebuilt from scratch on Telegram iOS 13.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
15 lines
413 B
Swift
15 lines
413 B
Swift
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)
|
|
}
|
|
}
|