A directive in the pack template language.

Constants

The descriptions of the various types of endianness.

The descriptions of the various types of signedness.

The descriptions of the various types of sizes.

Attributes
Read

The type of endianness of the directive.

Read

The length of this directive (used for integers).

The length type of this directive (used for integers).

Read

The type of signedness of the directive.

Read

The size of the directive.

Read

A byteslice of the source string that this directive represents.

Read

The type of the directive.

Read

A symbol representing whether or not we are packing or unpacking.

Read

A symbol representing the version of Ruby.

Class Methods

Initialize a new directive with the given values.

Instance Methods

Provide a human-readable description of the directive.