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
|
// swift-tools-version:5.2
|
||||||
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
|
||||||
|
|
||||||
import PackageDescription
|
import PackageDescription
|
||||||
|
|
||||||
|
|
|
@ -109,8 +109,9 @@ public final class Socket {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
public func send(_ data: Data, mode: SendMode = []) throws -> Bool {
|
public func send(_ data: Data, mode: SendMode = []) throws -> Bool {
|
||||||
var data = data
|
var newData = data
|
||||||
return try data.withUnsafeMutableBytes { bytes in
|
|
||||||
|
return try newData.withUnsafeMutableBytes { bytes in
|
||||||
return try self.send(bytes, length: data.count, mode: mode)
|
return try self.send(bytes, length: data.count, mode: mode)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue