//
//  RYHelper.h
//  SDK
//
//  Created by ldc on 2022/7/1.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

/**
 * \~chinese
 *  
 * 工具类
 *  
 * \~english
 *  
 * Tool.
 *  
 */
@interface RYHelper : NSObject

/**
 *  \~chinese
 *
 *  获取局域网IP
 *
 *  \~english
 *
 *  IP in LAN.
 *
 */
+ (NSString *)localIp;


/// 将十六进制字符串转换为数据
/// - Parameter hexString: 十六进制字符串
+ (NSData *)dataFromHexString:(NSString *)hexString;

+ (NSRange)findChars:(char *)target in:(NSData *)data;

+ (NSInteger)indexOf:(Byte)value from:(NSInteger)from in:(NSData *)data;

+ (NSData *)truncateFromFirstZero:(NSData *)input;

+ (NSString *)dataLogDescription:(NSData *)data;

@end

NS_ASSUME_NONNULL_END
