Blame view

HDFwear/OTA/Utils.h 479 Bytes
211744a9   jason   feat:ota import
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  //
  //  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