THRIFT-4547: Swift crosstests (#2670)
Co-authored-by: Jiayu Liu <Jimexist@users.noreply.github.com>
diff --git a/lib/swift/Sources/TWrappedProtocol.swift b/lib/swift/Sources/TWrappedProtocol.swift
index 8e8577b..8e47bd5 100644
--- a/lib/swift/Sources/TWrappedProtocol.swift
+++ b/lib/swift/Sources/TWrappedProtocol.swift
@@ -101,6 +101,10 @@
return try concreteProtocol.read()
}
+ public func read() throws -> Int8 {
+ return try concreteProtocol.read()
+ }
+
public func read() throws -> Int16 {
return try concreteProtocol.read()
}
@@ -120,6 +124,10 @@
public func read() throws -> Data {
return try concreteProtocol.read()
}
+
+ public func read() throws -> UUID {
+ return try concreteProtocol.read()
+ }
// Write methods
@@ -185,6 +193,10 @@
public func write(_ value: UInt8) throws {
try concreteProtocol.write(value)
}
+
+ public func write(_ value: Int8) throws {
+ try concreteProtocol.write(value)
+ }
public func write(_ value: Int16) throws {
try concreteProtocol.write(value)
@@ -205,4 +217,8 @@
public func write(_ data: Data) throws {
try concreteProtocol.write(data)
}
+
+ public func write(_ value: UUID) throws {
+ try concreteProtocol.write(value)
+ }
}