Utils.h
479 Bytes
//
// Utils.h
// ActsBluetoothOTA
//
// Created by inidhu on 2019/5/22.
// Copyright © 2019 Actions. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface Utils : NSObject
+ (UInt32)bytes2UInt32:(Byte*) bytes index:(NSInteger) index;
+ (UInt16)bytes2Short:(Byte*) bytes index:(NSInteger) index;
+ (NSArray *)getZeroBitIndexMap:(NSData *) bitmap groupNum:(int) group;
+ (int32_t)crc32:(NSData *)data;
@end
NS_ASSUME_NONNULL_END