Connected: An Internet Encyclopedia
3.14 Structure

Up: Connected: An Internet Encyclopedia
Up: Requests For Comments
Up: RFC 1832
Up: 3. XDR DATA TYPES
Prev: 3.13 Variable-length Array
Next: 3.15 Discriminated Union

3.14 Structure

3.14 Structure

Structures are declared as follows:

         struct {
            component-declaration-A;
            component-declaration-B;
            ...
         } identifier;

The components of the structure are encoded in the order of their declaration in the structure. Each component's size is a multiple of four bytes, though the components may be different sizes.

         +-------------+-------------+...
         | component A | component B |...                      STRUCTURE
         +-------------+-------------+...


Next: 3.15 Discriminated Union

Connected: An Internet Encyclopedia
3.14 Structure