首页> 外国专利> Generalizing data streams to overcome differences in word length and byte order

Generalizing data streams to overcome differences in word length and byte order

机译:通用化数据流以克服字长和字节顺序的差异

摘要

A computer system and method for use with the computer system to dynamically adapt to a data structure layout other than its own. The data may be an incoming data stream from outside or may be stored within its main memory. Between the transmitting and the receiving CPU there must be an understanding of the conceptual level and format of the data which is transferred. A prefix word in which details of the data structure layout is encoded is generated. The prefix word is appended to the data and transmitted to another CPU or used by the same CPU. Upon receipt of the data, the prefix word is read and decoded and the receiving CPU can dynamically adapt to details of the data structure layout in order to use the data which was generated and transmitted in a heretofore unknown data structure layout. The prefix word may be a Unicode reserved character of the form FExxyyFF or FFyyxxFE wherein FExxyyFF represents the same endianness, preferably big endian, and FFyyxxFE represents the other endianness, preferably little endian. Once endianness is resolved, then the position of xxyy is unambiguously known and specific features of the data structure layout, such as integer and pointer sizes, rounding/padding rules, byte alignment, bit alignment, etc. are encoded in an agreed-upon bit sequence. Thus, a method and a computer which can dynamically adapt to an unknown data structure is presented.
机译:一种计算机系统和与该计算机系统一起使用以动态地适应其自身之外的数据结构布局的方法。数据可以是来自外部的传入数据流,也可以存储在其主内存中。在发送和接收CPU之间,必须了解所传输数据的概念水平和格式。生成其中对数据结构布局的细节进行编码的前缀字。前缀字会附加到数据中,然后传输到另一个CPU或由同一CPU使用。一旦接收到数据,就对前缀字进行读取和解码,并且接收CPU可以动态地适应数据结构布局的细节,以便使用以迄今未知的数据结构布局生成和发送的数据。前缀字可以是格式为FExxyyFF或FFyyxxFE的Unicode保留字符,其中FExxyyFF表示相同的字节序,最好是大字节序,而FFyyxxFE表示另一字节序,最好是小字节序。解析字节序后,就可以清楚地知道xxyy的位置,并且数据结构布局的特定功能(例如整数和指针大小,舍入/填充规则,字节对齐,位对齐等)都以商定的位进行编码顺序。因此,提出了可以动态地适应未知数据结构的方法和计算机。

著录项

  • 公开/公告号US6434625B1

    专利类型

  • 公开/公告日2002-08-13

    原文格式PDF

  • 申请/专利权人 INTERNATIONAL BUSINESS MACHINES CORPORATION;

    申请/专利号US19990351663

  • 发明设计人 LARRY WAYNE LOEN;

    申请日1999-07-13

  • 分类号G06F151/60;

  • 国家 US

  • 入库时间 2022-08-22 00:49:45

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号