mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2025-07-27 06:32:59 +00:00
32 lines
588 B
Objective-C
32 lines
588 B
Objective-C
//
|
|
// Utils.h
|
|
// Moonlight
|
|
//
|
|
// Created by Diego Waxemberg on 10/20/14.
|
|
// Copyright (c) 2014 Moonlight Stream. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
@interface Utils : NSObject
|
|
|
|
typedef NS_ENUM(int, PairState) {
|
|
PairStateUnknown,
|
|
PairStateUnpaired,
|
|
PairStatePaired
|
|
};
|
|
|
|
FOUNDATION_EXPORT NSString *const deviceName;
|
|
|
|
+ (NSData*) randomBytes:(NSInteger)length;
|
|
+ (NSString*) bytesToHex:(NSData*)data;
|
|
+ (NSData*) hexToBytes:(NSString*) hex;
|
|
+ (int) resolveHost:(NSString*)host;
|
|
|
|
@end
|
|
|
|
@interface NSString (NSStringWithTrim)
|
|
|
|
- (NSString*) trim;
|
|
|
|
@end |