This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Diagnostics : NSObject { | |
//MARK: Device Platform | |
/** A String value of the device platform information */ | |
private class var platform: String { | |
// Declare an array that can hold the bytes required to store `utsname`, initilized | |
// with zeros. We do this to get a chunk of memory that is freed upon return of | |
// the method | |
var sysInfo: [CChar] = Array(count: sizeof(utsname), repeatedValue: 0) | |