# gizai:ml/bytes

a model to bytes and back.

```gizlang
import * as Bytes from "gizai:ml/bytes";
```

## Functions

### `encode`

```gizlang
function encode(m: Model): bytes
```

The model as bytes: "GZML", the format version, then the fields in order.

Effects: fail.

### `decode`

```gizlang
function decode(data: bytes): Model throws string
```

The model of `encode`; each later format version keeps reading the earlier ones.

Effects: fail.

