Reference link : https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/BinaryData/Tasks/WorkingBinaryData.html

1. create NSData, here msgData is also a NSData:

    const Byte * data = (const Byte *)[msgData bytes];
heartbeat.rawData = [NSData dataWithBytes: data length: [msgData length]];

2. Compare two NSData

            // if value not changed
if([model.rawData isEqualToData:(NSData*)msgData])
{
return FALSE;
}

最新文章

  1. Scrapy创建zentao爬虫
  2. mysql服务器和配置优化
  3. JPush API client library for C Sharp(极光推送API)
  4. JAVA CDI 学习(4) - @Alternative/@Default/@Any & Extension
  5. locality
  6. 必须关注的25位知名JavaScript开发者
  7. oracle限制用户连接数
  8. USACO Section 2.2 循环数 Runaround Numbers
  9. 跟我一起学习ASP.NET 4.5 MVC4.0(五)(转)
  10. iOS Core data多线程并发访问的问题
  11. HBase-java api 基本操作
  12. mysql求时间差
  13. Arduino 入门程序示例之一片 LED(2015-06-11)
  14. Java 编码 字符集
  15. RobotFramework自动化测试框架-移动手机自动化测试Click Element关键字的使用
  16. lesson - 11 正则表达式
  17. 深入学习MySQL事务:ACID特性的实现原理
  18. selenium+java二元素定位
  19. IDEA 介绍
  20. 如何写更少的 if else

热门文章

  1. js中的函数,Date对象,Math对象和数组对象
  2. IntelliJ IDEA 的Project structure说明
  3. C#Transfrom
  4. Nginx的安装及简单配置
  5. [A Top-Down Approach][第二章 应用层]
  6. Java NIO框架Netty教程(一) – Hello Netty
  7. flv网页播放器播放失败
  8. ruby.new
  9. Lesson 2: Dive Into Typography (排版)
  10. QueryFilter与SpatialFilter - 浅谈