Jimexist commented on code in PR #2670:
URL: https://github.com/apache/thrift/pull/2670#discussion_r975985997


##########
lib/swift/Sources/TBinaryProtocol.swift:
##########
@@ -246,6 +256,20 @@ public class TBinaryProtocol: TProtocol {
     return data
   }
   
+  public func read() throws -> UUID {
+    let data = try self.transport.readAll(size: 16)
+    let lsb = data[0..<data.count/2]
+    let msb = data[(data.count/2)..<data.count]

Review Comment:
   ```suggestion
       let lsb = data[0..<8]
       let msb = data[8..<16]
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to