External Data Representation

Source: Wikipedia, the free encyclopedia.

External Data Representation (XDR) is a

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

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.[2] XDR became an

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
  • 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. ^ "X.225 : Information technology – Open Systems Interconnection – Connection-oriented Session protocol: Protocol specification". Archived from the original on 1 February 2021. Retrieved 10 March 2023.
  2. . Retrieved July 11, 2011.

External links

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