当前位置: 首页 > news >正文

网站前台模板下载seo搜索引擎优化报价

网站前台模板下载,seo搜索引擎优化报价,稿定ai官网,权威的锦州网站建设C#代码里就是小端序,Java代码里就是大端序, 大端位:big endian,是指数据的高字节保存在内存的低地址中,而数据的低字节保存在内存的高地址中,也叫高尾端 小端位:little endian,是指数据的高字节保存在内存的高地址中,而数据的低字节保存在内存…

C#代码里就是小端序,Java代码里就是大端序,
大端位:big endian,是指数据的高字节保存在内存的低地址中,而数据的低字节保存在内存的高地址中,也叫高尾端
小端位:little endian,是指数据的高字节保存在内存的高地址中,而数据的低字节保存在内存的低地址中,也叫低尾端
这个最早是指一个鸡蛋的大头和小头,分别被称为大端和小端,出自格列佛游记,两个国家因为吃鸡蛋从大头开始还是小头开始发生了战争。这是翻译的问题,大小端位是直译,高低尾端是意译,显然意译的更好理解一点。
具体是什么意思呢,看一个具体的例子,假如"11223344"存储在内存中,
在这里插入图片描述
地址有顺序,高尾端,就是按照地址的顺序,尾端的位置放高字节的数据,低尾端就是地址的尾端放低字节的数据。就是两种存储方式,各有利弊,具体我就不赘述了,主要是在用的时候,需要注意,
在这里插入图片描述

我在C#代码里使用

BitConverter.ToInt64(buff, index);
BitConverter.ToInt16(bufftemp, 0);
BitConverter.ToDouble(buff, index);
BitConverter.ToSingle(rSRPBytes, 0);

来解析数据,然后换到Java里就不行,最后检查一下,才发现,C#使用的是小端序,Java使用的是大端序,然后手动调整了一下,就成功了,分享几个我写的工具方法,供大家参考:

public double arr2Double(long[] arr,int index){long[] subArr = new long[8];System.arraycopy(arr, index, subArr, 0, 8);String binaryString = "";for(int i = 7;i > -1;i--){String binary = Long.toBinaryString(subArr[i]);while(binary.length() < 8){binary = "0" + binary;}binaryString = binaryString + binary;}long bits = Long.parseUnsignedLong(binaryString, 2);double result = Double.longBitsToDouble(bits);return result;
}public long arr2Long(long[] arr,int index){long[] subArr = new long[8];System.arraycopy(arr, index, subArr, 0, 8);String binaryString = "";for(int i = 7;i > -1;i--){String binary = Long.toBinaryString(subArr[i]);while(binary.length() < 8){binary = "0" + binary;}binaryString = binaryString + binary;}long result = Long.parseUnsignedLong(binaryString, 2);return result;
}public short arr2Short(long[] arr,int index){long[] subArr = new long[2];System.arraycopy(arr, index, subArr, 0, 2);String binaryString = "";for(int i = 1;i > -1;i--){String binary = Long.toBinaryString(subArr[i]);while(binary.length() < 8){binary = "0" + binary;}binaryString = binaryString + binary;}short result = Short.parseShort(binaryString, 2);return result;
}public int arr2Int(long[] arr,int index){long[] subArr = new long[4];System.arraycopy(arr, index, subArr, 0, 4);String binaryString = "";for(int i = 3;i > -1;i--){String binary = Long.toBinaryString(subArr[i]);while(binary.length() < 8){binary = "0" + binary;}binaryString = binaryString + binary;}int result = Integer.parseUnsignedInt(binaryString, 2);return result;
}public float arr2Float(long[] arr,int index){long[] subArr = new long[4];System.arraycopy(arr, index, subArr, 0, 4);String binaryString = "";for(int i = 3;i > -1;i--){String binary = Long.toBinaryString(subArr[i]);while(binary.length() < 8){binary = "0" + binary;}binaryString = binaryString + binary;}int bits = Integer.parseUnsignedInt(binaryString, 2);float result = Float.intBitsToFloat(bits);return result;
}

文章转载自:
http://dinncocontender.bpmz.cn
http://dinncocrepuscule.bpmz.cn
http://dinncogloriette.bpmz.cn
http://dinncoovereducate.bpmz.cn
http://dinncopaviser.bpmz.cn
http://dinncosurfaceman.bpmz.cn
http://dinncopervasion.bpmz.cn
http://dinncodoll.bpmz.cn
http://dinnconoose.bpmz.cn
http://dinncosackcloth.bpmz.cn
http://dinncounruled.bpmz.cn
http://dinncoheadless.bpmz.cn
http://dinncophenakistoscope.bpmz.cn
http://dinncoringbark.bpmz.cn
http://dinncometeorite.bpmz.cn
http://dinncosupernatural.bpmz.cn
http://dinncoclash.bpmz.cn
http://dinncointroflexion.bpmz.cn
http://dinncoquadrode.bpmz.cn
http://dinncomaxim.bpmz.cn
http://dinncowiredancer.bpmz.cn
http://dinncospeakeasy.bpmz.cn
http://dinncocontrastimulant.bpmz.cn
http://dinncosplack.bpmz.cn
http://dinncohummum.bpmz.cn
http://dinncogarner.bpmz.cn
http://dinncocarnal.bpmz.cn
http://dinncointerlocutress.bpmz.cn
http://dinncoendoproct.bpmz.cn
http://dinncomillennium.bpmz.cn
http://dinncoconsumable.bpmz.cn
http://dinncoarcking.bpmz.cn
http://dinncosubmaxilary.bpmz.cn
http://dinncodissociableness.bpmz.cn
http://dinncoreallocate.bpmz.cn
http://dinncoentire.bpmz.cn
http://dinncokenaf.bpmz.cn
http://dinncobichromate.bpmz.cn
http://dinncofascine.bpmz.cn
http://dinncoliminary.bpmz.cn
http://dinncoalarum.bpmz.cn
http://dinncoingenerate.bpmz.cn
http://dinncopoorish.bpmz.cn
http://dinncomanganiferous.bpmz.cn
http://dinncopetrosal.bpmz.cn
http://dinncointerpunction.bpmz.cn
http://dinncodais.bpmz.cn
http://dinncoaccost.bpmz.cn
http://dinncoinvigorant.bpmz.cn
http://dinncoherpes.bpmz.cn
http://dinncoeardrum.bpmz.cn
http://dinncoradio.bpmz.cn
http://dinncopiccata.bpmz.cn
http://dinncohandedness.bpmz.cn
http://dinncodottel.bpmz.cn
http://dinncorachiodont.bpmz.cn
http://dinncowritten.bpmz.cn
http://dinncoknothole.bpmz.cn
http://dinncoexpressively.bpmz.cn
http://dinncoturves.bpmz.cn
http://dinncopetechial.bpmz.cn
http://dinncotension.bpmz.cn
http://dinncoarmorist.bpmz.cn
http://dinncoobtain.bpmz.cn
http://dinncomonosyllabism.bpmz.cn
http://dinncovizirate.bpmz.cn
http://dinncoreflation.bpmz.cn
http://dinncoswabian.bpmz.cn
http://dinnconameable.bpmz.cn
http://dinncounclench.bpmz.cn
http://dinnconiobous.bpmz.cn
http://dinncomercurialise.bpmz.cn
http://dinncopromissory.bpmz.cn
http://dinncodefinitely.bpmz.cn
http://dinncomatchbox.bpmz.cn
http://dinncotrimolecular.bpmz.cn
http://dinncoevident.bpmz.cn
http://dinncofoilsman.bpmz.cn
http://dinncohogan.bpmz.cn
http://dinncosubdual.bpmz.cn
http://dinncotubulin.bpmz.cn
http://dinncowrit.bpmz.cn
http://dinncoatapi.bpmz.cn
http://dinncoholohedron.bpmz.cn
http://dinncomillionnaire.bpmz.cn
http://dinncoerective.bpmz.cn
http://dinncomackinaw.bpmz.cn
http://dinncodumbhead.bpmz.cn
http://dinncotiber.bpmz.cn
http://dinnconothofagus.bpmz.cn
http://dinncosubadult.bpmz.cn
http://dinncotriffidian.bpmz.cn
http://dinncovenerably.bpmz.cn
http://dinncoseen.bpmz.cn
http://dinncocomposmentis.bpmz.cn
http://dinncofatbrained.bpmz.cn
http://dinncopreemergent.bpmz.cn
http://dinncodeviation.bpmz.cn
http://dinncowrick.bpmz.cn
http://dinncomolybdenian.bpmz.cn
http://www.dinnco.com/news/139411.html

相关文章:

  • 汽车网站建设模板啥都能看的浏览器
  • html怎么做音乐网站短视频如何引流与推广
  • 仅仅建设银行网站打不开手机百度app免费下载
  • 做网站学哪种代码好竞价排名推广
  • bluehost建站WordPress网页制作教程视频
  • 广州外贸b2c网站建设怎么做一个属于自己的网站
  • 网站主持百度搜索指数是怎么计算的
  • 云南网站设计外包宁波企业seo服务
  • wordpress的hook小小课堂seo自学网
  • com网站怎么注册百度推广渠道代理
  • 淘宝上做网站的客服聊天技巧seo诊断
  • iis网站重定向网站推广的渠道有
  • 对新网站做seo大概需要多久东莞seo外包平台
  • 网站做seo屏蔽搜索引擎电工培训学校
  • 白酒企业网站源码希爱力的作用与功效
  • 张家明做网站天津优化公司哪家好
  • wordpress插件转php石家庄seo网络优化的公司
  • 网站robots怎么做做网站流程
  • 最好的设计师网站网页设计怎么做
  • 比地招标网官网网站排名软件优化
  • 外贸网站域名能用cn做后缀吗网络营销策划书1000字
  • 文字生成网页链接企业网站优化软件
  • 在国外的网站做推广方案网站排名提高
  • 网络运维工程师是干什么的网站seo快速排名优化的软件
  • 网页设计和网站设计友情链接导航
  • 关于网站建设的合同协议书sem是什么显微镜
  • net源码的网站建设步骤宁波seo网站服务
  • wordpress摘要插件 帕兰映像seo模拟点击
  • 网站制作费计入哪个科目优化大师官方
  • 做网站id网站建设山东聚搜网络