Minor changes
This commit is contained in:
parent
aee6c3a237
commit
b7d550ee5c
|
@ -1 +1 @@
|
|||
4.0.3
|
||||
5.2.4
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
// swift-tools-version:4.0
|
||||
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
||||
// swift-tools-version:5.2
|
||||
|
||||
import PackageDescription
|
||||
|
||||
|
|
|
@ -109,8 +109,9 @@ public final class Socket {
|
|||
return true
|
||||
}
|
||||
public func send(_ data: Data, mode: SendMode = []) throws -> Bool {
|
||||
var data = data
|
||||
return try data.withUnsafeMutableBytes { bytes in
|
||||
var newData = data
|
||||
|
||||
return try newData.withUnsafeMutableBytes { bytes in
|
||||
return try self.send(bytes, length: data.count, mode: mode)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue