wireguard-apple/Shared/ExtensionMessage.swift
Jason A. Donenfeld 5b6ef1ca38 Global: fix up captialization in headers
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-10-30 03:57:35 +01:00

26 lines
503 B
Swift

//
// Copyright © 2018 WireGuard LLC. All Rights Reserved.
//
import Foundation
public class ExtensionMessage: Equatable {
public static let requestVersion = ExtensionMessage(0xff)
public let data: Data
private init(_ byte: UInt8) {
data = Data(bytes: [byte])
}
init(_ data: Data) {
self.data = data
}
// MARK: Equatable
public static func == (lhs: ExtensionMessage, rhs: ExtensionMessage) -> Bool {
return (lhs.data == rhs.data)
}
}