GRDImgInfo.h 604 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // GRDImgInfo.h
  3. // GRDFU
  4. //
  5. // Created by dingjian on 2019/12/23.
  6. // Copyright © 2019 Goodix. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "GRDBootInfo.h"
  10. NS_ASSUME_NONNULL_BEGIN
  11. #define VALID_IMG_INFO_PATTERN 0x4744
  12. @interface GRDImgInfo : NSObject
  13. {
  14. @public
  15. uint16_t _pattern;
  16. uint16_t _version;
  17. GRDBootInfo* _bootInfo;
  18. NSString* _comment;
  19. }
  20. -(void)serializeTo:(GCXHexBuilder*)builder;
  21. -(uint32_t)getSerializationSize;
  22. -(instancetype)deserializeFrom:(GCXHexReader*)reader;
  23. -(instancetype)copyFrom:(GRDImgInfo*)other;
  24. @end
  25. NS_ASSUME_NONNULL_END