取模数据格式转换源码 宽高8*16 低位在前 第二字节由右边改为下边

原创 2015年11月18日 16:06:49
//取模数据格式转换源码 宽高8*16 低位在前 第二字节由右边改为下边
class ZH2{
static 	char[] ew={
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x80,0xE0,0x9C,0xB0,0xC0,0x00,0x00,0x0E,0x09,0x00,0x00,0x00,0x00,0x0B,0x0C,
0x04,0xFC,0x44,0x44,0x44,0x44,0x44,0x8C,0x08,0x0F,0x08,0x08,0x08,0x08,0x08,0x07,
0x04,0xFC,0x44,0x44,0x44,0x44,0xA4,0x18,0x08,0x0F,0x08,0x08,0x08,0x08,0x08,0x07,
0x04,0xFC,0x04,0x04,0x04,0x04,0x04,0x1C,0x08,0x0F,0x08,0x00,0x00,0x00,0x00,0x00,
0x04,0x04,0xFC,0x04,0x04,0x04,0xFC,0x04,0x08,0x0F,0x08,0x08,0x08,0x08,0x0F,0x08,
0x04,0xFC,0x44,0x44,0x44,0xE4,0x04,0x0C,0x08,0x0F,0x08,0x08,0x08,0x08,0x08,0x0F,
0x04,0xB8,0x40,0x44,0xFC,0x44,0x40,0xB8,0x06,0x01,0x00,0x08,0x0F,0x08,0x00,0x01,
0x00,0x1C,0x08,0x44,0x44,0x44,0xB8,0x00,0x00,0x06,0x08,0x08,0x08,0x08,0x07,0x00,
0xFC,0x04,0x00,0x80,0x40,0x20,0x14,0xFC,0x0F,0x0A,0x01,0x00,0x00,0x00,0x08,0x0F,
0xFC,0x04,0x01,0x82,0x42,0x21,0x14,0xFC,0x0F,0x0A,0x01,0x00,0x00,0x00,0x08,0x0F,
0x04,0xFC,0x44,0x40,0xB0,0x08,0x04,0x08,0x08,0x0F,0x08,0x00,0x00,0x07,0x08,0x04,
0x00,0x04,0xFC,0x04,0x04,0x04,0x04,0xFC,0x08,0x04,0x03,0x00,0x00,0x00,0x08,0x0F,
0x18,0x60,0x80,0x00,0x80,0x60,0x18,0xFC,0x08,0x00,0x01,0x06,0x01,0x00,0x08,0x0F,
0xFC,0x44,0x40,0x40,0x40,0x40,0x44,0xFC,0x0F,0x08,0x00,0x00,0x00,0x00,0x08,0x0F,
0xF0,0x08,0x04,0x04,0x04,0x04,0x08,0xF0,0x03,0x04,0x08,0x08,0x08,0x08,0x04,0x03,
0xFC,0x04,0x04,0x04,0x04,0x04,0x04,0xFC,0x0F,0x08,0x00,0x00,0x00,0x00,0x08,0x0F,
0x04,0xFC,0x44,0x44,0x44,0x44,0x44,0x38,0x08,0x0F,0x08,0x00,0x00,0x00,0x00,0x00,
0xF0,0x08,0x04,0x04,0x04,0x04,0x08,0x1C,0x03,0x04,0x08,0x08,0x08,0x08,0x04,0x02,
0x0C,0x04,0x04,0x04,0xFC,0x04,0x04,0x04,0x00,0x00,0x00,0x08,0x0F,0x08,0x00,0x00,
0x04,0x0C,0x34,0xC0,0x80,0x64,0x1C,0x04,0x04,0x08,0x08,0x06,0x01,0x00,0x00,0x00,
0xE0,0x10,0x10,0x14,0xFC,0x14,0x10,0x10,0x01,0x02,0x02,0x0A,0x0F,0x0A,0x02,0x02,
0x04,0x0C,0x14,0x20,0xC0,0x20,0x14,0x0C,0x08,0x0C,0x0A,0x01,0x00,0x01,0x0A,0x0C,
0xFC,0x04,0x00,0x00,0x00,0x00,0x04,0xFC,0x0F,0x08,0x08,0x08,0x08,0x08,0x08,0x0F,
0x7C,0x84,0x80,0x80,0x80,0x40,0x44,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x0F,
0x04,0x00,0x00,0x04,0xFC,0x04,0x00,0x00,0x08,0x08,0x08,0x08,0x0F,0x08,0x08,0x08,
0x04,0x00,0x00,0x04,0xFC,0x04,0x00,0x00,0x08,0x08,0x08,0x08,0x0F,0x08,0x08,0x08,
0x04,0x04,0xFC,0x44,0x44,0x40,0x40,0x40,0x00,0x08,0x0F,0x08,0x08,0x08,0x08,0x08,
0x44,0x40,0x40,0x40,0x40,0x80,0x00,0x04,0x08,0x08,0x08,0x08,0x08,0x07,0x00,0x08,
0x04,0xFC,0x44,0x40,0x40,0x40,0x40,0x80,0x08,0x0F,0x08,0x08,0x08,0x08,0x08,0x07,
0x00,0x1C,0x08,0x44,0x44,0x44,0x48,0xF0,0x00,0x06,0x08,0x08,0x08,0x08,0x04,0x03,
0x44,0x40,0xF0,0x08,0x04,0x04,0x04,0x04,0x08,0x00,0x03,0x04,0x08,0x08,0x08,0x08,
0x38,0x44,0x84,0x84,0x84,0x84,0xFC,0x04,0x08,0x08,0x07,0x00,0x00,0x08,0x0F,0x08,
0x00,0x40,0x20,0x20,0x20,0xC0,0x00,0x00,0x00,0x06,0x09,0x09,0x09,0x07,0x08,0x00,
0x00,0xE0,0x50,0x28,0x28,0x24,0xC4,0x00,0x00,0x03,0x04,0x08,0x08,0x04,0x03,0x00,
0x00,0x20,0xE0,0x20,0x20,0x20,0xC0,0x00,0x00,0x08,0x0F,0x09,0x09,0x09,0x06,0x00,
0x00,0x20,0xE0,0x20,0x20,0x20,0x60,0x00,0x00,0x08,0x0F,0x08,0x00,0x00,0x00,0x00,
0x00,0x20,0xE0,0x20,0x20,0xE0,0x20,0x00,0x18,0x0C,0x0B,0x08,0x08,0x0F,0x18,0x00,
0x00,0x00,0xC0,0x20,0x20,0x20,0xC0,0x00,0x00,0x00,0x07,0x09,0x09,0x09,0x05,0x00,
0x20,0xC0,0x00,0xE0,0x00,0xC0,0x20,0x20,0x08,0x06,0x01,0x0F,0x01,0x06,0x08,0x08,
0x00,0xE0,0x40,0x20,0x20,0xC0,0x00,0x00,0x00,0x04,0x08,0x08,0x09,0x06,0x00,0x00,
0x20,0xE0,0x20,0x00,0x00,0xA0,0xE0,0x20,0x08,0x0F,0x0C,0x02,0x01,0x08,0x0F,0x08,
0x20,0xE0,0x28,0x10,0x10,0xA8,0xE0,0x20,0x08,0x0F,0x0C,0x02,0x01,0x08,0x0F,0x08,
0x20,0xE0,0x20,0x00,0xC0,0x20,0x40,0x00,0x08,0x0F,0x09,0x01,0x06,0x08,0x04,0x00,
0x00,0x00,0x20,0xE0,0x20,0x20,0xE0,0x20,0x00,0x08,0x08,0x07,0x00,0x08,0x0F,0x08,
0xE0,0x80,0x00,0x00,0x00,0x80,0xE0,0x20,0x0F,0x08,0x01,0x06,0x01,0x08,0x0F,0x08,
0x20,0xE0,0x20,0x00,0x00,0x20,0xE0,0x20,0x08,0x0F,0x09,0x01,0x01,0x09,0x0F,0x08,
0x00,0x80,0x40,0x20,0x20,0x40,0x80,0x00,0x00,0x03,0x04,0x08,0x08,0x04,0x03,0x00,
0x00,0x20,0xE0,0x20,0x20,0x20,0xE0,0x20,0x00,0x08,0x0F,0x08,0x00,0x08,0x0F,0x08,
0x92,0x00,0x92,0x00,0x92,0x00,0x92,0x00,0x24,0x00,0x24,0x00,0x24,0x00,0x24,0x00,
0xAA,0x00,0xAA,0x00,0xAA,0x00,0xAA,0x00,0x2A,0x00,0x2A,0x00,0x2A,0x00,0x2A,0x00,
0x77,0xDD,0xDD,0x77,0xF5,0xDD,0x57,0x77,0x77,0x5D,0x5D,0x77,0x5F,0x5D,0x77,0x77,
0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x00,0x00,0x00,
0x80,0x80,0x80,0x80,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x00,0x00,0x00,
0x40,0x40,0x40,0x40,0xFF,0x00,0x00,0x00,0x01,0x01,0x01,0x01,0x7F,0x00,0x00,0x00,
0x80,0x80,0x80,0xFF,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x7F,0x00,0x7F,0x00,0x00,
0x80,0x80,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x7F,0x00,0x7F,0x00,0x00,
0x40,0x40,0x40,0x40,0xC0,0x00,0x00,0x00,0x01,0x01,0x01,0x01,0x7F,0x00,0x00,0x00,
0x40,0x40,0x40,0x7F,0x00,0xFF,0x00,0x00,0x01,0x01,0x01,0x7F,0x00,0x7F,0x00,0x00,
0x00,0x00,0x00,0xFF,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x7F,0x00,0x7F,0x00,0x00,
0x40,0x40,0x40,0x40,0x40,0xC0,0x00,0x00,0x01,0x01,0x01,0x7F,0x00,0x7F,0x00,0x00,
0x40,0x40,0x40,0x7F,0x00,0xFF,0x00,0x00,0x01,0x01,0x01,0x01,0x01,0x01,0x00,0x00,
0x80,0x80,0x80,0xFF,0x80,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x40,0x40,0x40,0x40,0xFF,0x00,0x00,0x00,0x01,0x01,0x01,0x01,0x01,0x00,0x00,0x00,
0x80,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x00,0x00,0x00,
};
	static void zh8_16()
	{
		System.out.println("char ew[]={");
		char n[]=new char[ew.length];
		char[] pos={1,9,2,10,3,11,4,12,5,13,6,14,7,15,8,16,};
		for(int k=0;k<ew.length/16;k++)
		{
		for(int i=0;i<16;i++)
		{
			n[k*16+i]=ew[k*16+pos[i]-1];
			System.out.printf("0x%02X,",(int)n[k*16+i]);
		}
		System.out.println();		
	}
	System.out.println("};");
	}
	public static void main(String[] strArg)
	{
		
		zh8_16();	
	}
	}



java取模数据格式转换源码 宽高16*16 高位在前 转为 低位在前

阿拉伯语字库bin文件_高字节在前从上到下纵向1616_06F0-06FF.bin ...
  • chenhao0568
  • chenhao0568
  • 2016年08月17日 17:13
  • 795

字节顺序:高位优先(big-endian)和低位优先(little-endian)

字节顺序:高位优先(big-endian)和低位优先(little-endian)   网络字节序: MSB 高字节前存法 Most Significant Bit   (Big Edian) ...
  • yu132563
  • yu132563
  • 2015年02月10日 11:20
  • 1909

正确理解数字在内存中高位在高位,低位在低位

正确理解数字在内存中高位在高位,低位在低位
  • sulongvc
  • sulongvc
  • 2010年12月08日 21:11
  • 1768

C语言版和JAVA版 把一个字节正序(高位在前)转为逆序(低位在前) 和 逆序转为正序

一、C语言版 把一个字节正序(高位在前)转为逆序(低位在前) 和 逆序转为正序 // xhrrj.cpp : Defines the entry point for the console ap...
  • chenhao0568
  • chenhao0568
  • 2017年05月25日 10:10
  • 1080

如何判断一个机器是大端在前还是小端在前

什么是大/小端呢?所谓大端就是指高位值在内存中放低位地址,所谓小端是指低位值在内存中放低位地址。比如0x11223344在大端机上是11223344,在小端机上是44332211,而一个机器是大端还是...
  • xiaozhen321
  • xiaozhen321
  • 2013年09月02日 16:24
  • 665

C/C++ 变量字节的高位、地位

就拿自由变量来说: 1. 自由变量分配地址是从高地址 -> 低地址的 2.多字节的变量,高位在高地址,低位在低地址。 测试:  #include int main () { i...
  • chenyiming_1990
  • chenyiming_1990
  • 2013年08月21日 17:25
  • 2293

delphi 关于 "高位" 与 "低位"

本话题会涉及到: Lo、Hi、HiByte、LoWord、HiWord、MakeWord、MakeLong、Int64Rec--------------------------------------...
  • chinmusam
  • chinmusam
  • 2010年09月09日 00:02
  • 631

Modbus协议的CRC校验码是高位在前还是低位在前的问题

最近接触到CRC校验,发现不同的地方Modbus的CRC校验码高低位说法不同。为了把相关问题弄清楚。本文按以下顺序来讲述: 1.CRC校验码是什么? 2.ModBus协议是怎样计算CRC校验码的? 3...
  • chenchenxgnz
  • chenchenxgnz
  • 2016年04月14日 09:35
  • 4994

vs里int是低位在前存储的

比如值为2的 int型在内存中数据是:00000010 00000000  00000000   00000000 所以如下: int a=2; char *ca=(char*)&a; printf(...
  • zhangpinghao
  • zhangpinghao
  • 2012年11月07日 22:24
  • 588

PHP: 深入pack/unpack

PHP作为一门为web而生的服务器端开发语言,被越来越多的公司所采用。其中不乏大公司,如腾迅、盛大、淘米、新浪等。在对性能要求比较高的项目中,PHP也逐渐演变成一门前端语言,用于访问后端接口。或者不同...
  • lucifer_qiao
  • lucifer_qiao
  • 2015年03月10日 09:48
  • 417
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:取模数据格式转换源码 宽高8*16 低位在前 第二字节由右边改为下边
举报原因:
原因补充:

(最多只允许输入30个字)