Wikipedia

External Data Representation

Also found in: Financial, Acronyms, Encyclopedia.

External Data Representation (XDR) is a standard data serialization format, for uses such as computer network protocols. It allows data to be transferred between different kinds of computer systems. Converting from the local representation to XDR is called encoding. Converting from XDR to the local representation is called decoding. XDR is implemented as a software library of functions which is portable between different operating systems and is also independent of the transport layer.

XDR uses a base unit of 4 bytes, serialized in big-endian order; smaller data types still occupy four bytes each after encoding. Variable-length types such as string and opaque are padded to a total divisible by four bytes. Floating-point numbers are represented in IEEE 754 format.

History

XDR was developed in the mid 1980s at Sun Microsystems, and first widely published in 1987.[1] XDR became an IETF standard in 1995.

The XDR data format is in use by many systems, including:

XDR data types

  • boolean
  • int – 32-bit integer
  • unsigned int – unsigned 32-bit integer
  • hyper – 64-bit integer
  • unsigned hyper – unsigned 64-bit integer
  • IEEE float
  • IEEE double
  • quadruple (new in RFC1832)
  • enumeration
  • structure
  • string
  • fixed length array
  • variable length array
  • union – discriminated union
  • fixed length opaque data
  • variable length opaque data
  • void – zero byte quantity
  • optional – optional data is notated similarly to C pointers, but is represented as the data type "pointed to" with a boolean "present or not" flag. Semantically this is option type.

See also

References

  1. ^ Sun Microsystems (1987). "XDR: External Data Representation Standard". RFC 1014. Network Working Group. Retrieved July 11, 2011.

External links

The XDR standard exists in three different versions in the following RFCs:

This article is copied from an article on Wikipedia® - the free encyclopedia created and edited by its online user community. The text was not checked or edited by anyone on our staff. Although the vast majority of Wikipedia® encyclopedia articles provide accurate and timely information, please do not assume the accuracy of any particular article. This article is distributed under the terms of GNU Free Documentation License.

Copyright © 2003-2025 Farlex, Inc Disclaimer
All content on this website, including dictionary, thesaurus, literature, geography, and other reference data is for informational purposes only. This information should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional.