data-layout-0.1.0.0: Read/write arbitrary binary layouts to a "Data.Vector.Storable".

Safe HaskellNone

Data.Layout

Description

A DSL for describing data laid out in a regular fashion with a combination of structures and arrays.

Synopsis

Documentation

data Layout Source

Describes the binary layout of a set of data.

Instances

type Bytes = IntSource

Size in bytes.

type Reps = IntSource

Number of repetitions.

data ByteOrder Source

The byte order of a value.

Constructors

NoByteOrder

The word is only one byte in size.

LittleEndian

The least significant byte is first in the word.

BigEndian

The most significant byte is first in the word.