在不严谨的前提下,byteoctet都表示为8 bits,但是严格意义上来讲,octet才是严格意义上的8 bits,而历史上的byte其实可以表示为4 bits ~ 10 bits,只不过现在的计算机环境下,已经默认了byte为8 bits。

octet = 8 bits
byte = (4~10 bits)8 bits(通常情况下)
参考出处:https://www.differencebetween.com/difference-between-octet-and-vs-byte/

原文部分内容:
In computing, bit is the basic unit of information. Simply, a bit can be seen as a variable that can take only one of the two possible values. These two possible values are ‘0’ and ‘1’ and interpreted as binary digits. The two possible values could also be interpreted as logical (Boolean) values, which are ‘true’ and ‘false’. Byte is another unit of information used in computing. In the history of computing, the unit byte has stood for representing various storage sizes (typically from 4 to 10 bits), because it is not considered a standardized unit. But, due to heavy use of the term byte to represent eight bits by several major computer architectures and production lines, byte slowly became associated with eight bits. Still, due to the earlier ambiguity, the term Octet was introduced as a standardized unit to represent eight bits. So, as of now, both Byte and Octet are used interchangeably to represent eight bits. Byte is also used as a data type in several programming languages such as C and C++.

octet和byte的差异相关推荐

  1. octet和byte

    在看BLE协议时,看到了数据包格式的定义(packet format),定义如下: Preamble(1 octet)    Access Address(4 octets)    PDU(2 to ...

  2. 总结octet与byte的区别

    在BLE协议中,看到数据包格式的定义(packet format),定义如下: Preamble(1 octet)    Access Address(4 octets)    PDU(2 to 25 ...

  3. IoT:BLE4.0教程一 蓝牙协议连接过程与广播分析

    IoT:BLE4.0教程一 蓝牙协议连接过程与广播分析 1.蓝牙简介 什么是蓝牙4.0 蓝牙无线技术是使用范围最广泛的全球短距离无线标准之一,蓝牙4.0版本涵盖了三种蓝牙技术,即传统蓝牙.高速蓝牙和低 ...

  4. Apache Commons Codec 也就那样吧!!!

    一.简介   commons-codec是Apache开源组织提供的用于摘要运算.编码解码的包,常见的编码解码工具Base64.MD5.Hex.SHA1.DES等.常规加密解密算法它由一组实用程序和一 ...

  5. ble连接过程建立_BLE4.0教程一 蓝牙协议连接过程与广播分析

    1.蓝牙简介 什么是蓝牙4.0 蓝牙无线技术是使用范围最广泛的全球短距离无线标准之一,蓝牙4.0版本涵盖了三种蓝牙技术,即传统蓝牙.高速蓝牙和低功耗蓝牙技术,将三种规范合而为一.它继承了蓝牙技术在无线 ...

  6. 移植Micrel KSZ8842网卡芯片到U-Boot 2008.10

    本来是看着 Micrel 的 KSZ8842 文档全,U-boot 和 Linux 驱动都有才使用这颗芯片的,没想到它的U-boot驱动是没测试过的,根本不能用.没办法只好根据其文档来修改. 直接贴上 ...

  7. BLE4.0教程一 蓝牙协议连接过程与广播分析

    1.蓝牙简介 什么是蓝牙4.0 蓝牙无线技术是使用范围最广泛的全球短距离无线标准之一,蓝牙4.0版本涵盖了三种蓝牙技术,即传统蓝牙.高速蓝牙和低功耗蓝牙技术,将三种规范合而为一.它继承了蓝牙技术在无线 ...

  8. Java .Net Byte数组存储差异以及解决方法

    最近在Java与.Net服务Bytes数据交互碰到一个问题:.Net IntToBytes结果和Java IntToBytes结果是反序的,查了一下发现:Java stores things inte ...

  9. java sbyte_JAVA与c#中byte取值范围的差异

    C#中分有符号类型的sbyte和无符号类型的byte Console.WriteLine("byte.min:{0},byte.max:{1},{2}byte", byte.Min ...

  10. Go 学习笔记(11)— 切片定义、切片初始化、数组和切片差异、字符串和切片转换、len()、cap()、空 nil 切片、append()、copy() 函数、删除切片元素

    1. 切片定义 Go 语言切片是对数组的抽象. Go 中提供了一种灵活,功能强悍的内置类型切片("动态数组"),与数组相比切片的长度是不固定的,可以追加元素,在追加时可能使切片的容 ...

最新文章

  1. 武汉约100所中小学将试点人工智能课,现面向社会遴选教材
  2. humanparsing自然场景人体语义分割
  3. 内建模块_月隐学python第14课
  4. python都有哪些包装_Python基础:21包装
  5. 一个Python练习
  6. 删除单链表中倒是第K个结点
  7. Js、Jquery密码输入框的密码显示与隐藏
  8. Sum nyoj215
  9. windows mysql 升级
  10. jQuery源码分析系
  11. Linux服务器恢复删除数据
  12. 深圳mba学费一览表
  13. Vue - 路由导航守卫控制访问权限,设置 localStorage 过期时间
  14. PostgreSQL12.3——pgAdmin4表格的创建
  15. android中获取context的多种方法的区别(this,getbascontext(),getApplicationcontext())
  16. Python tell 和 seek用法
  17. 想成为一名数据库工程师,你必须知道这些
  18. 入门系列:gdb学习——函数调用时参数传递
  19. JavaScript验证Email的四种方法
  20. 使用C语言实现LED1/LED2/LED3灯点亮

热门文章

  1. Adobe又逆天!不用机器学习,用13.5M软件把《长安十二时辰》变成水墨动画
  2. 机器视觉硬件之光源选型以及打光技巧
  3. 基于时延估计的动力型下肢假肢分段控制策略研究
  4. docker出现 Error starting userland proxy: listen tcp4 0.0.0.0:3306: bind: address already in use的解决方法
  5. 一款值得使用的会议室管理软件【会议预订小程序】
  6. 如何利用PowerShell完成的Windows服务器系统安全加固实践和基线检测
  7. Promise详尽指南
  8. Scala Test
  9. 程序员怒怼产品经理最新表情包,叫我改Bug这辈子是不可能的
  10. 小提琴1234567位置图解_1秒找到小提琴上的每个调音阶