# `CRAM.Info`
[🔗](https://github.com/baoulo/cram-elixir/blob/v0.1.0/lib/cram/info.ex#L1)

File-level description that does not include alignment records.

`version` is `{major, minor}` from the file definition. `supported` is false
for versions other than 3.0 and 3.1; container fields are then `nil` because
those layouts are not walked.

# `t`

```elixir
@type t() :: %CRAM.Info{
  block_methods: [atom()],
  byte_size: non_neg_integer(),
  container_count: non_neg_integer() | nil,
  eof: boolean() | nil,
  file_id: binary(),
  file_id_text: String.t(),
  path: Path.t() | nil,
  reference_sequences: [map()],
  supported: boolean(),
  version: {non_neg_integer(), non_neg_integer()}
}
```

File summary from `CRAM.info/1`.

  * `:version` — `{major, minor}` from the file definition
  * `:file_id` — the raw 20 bytes
  * `:file_id_text` — printable form, or lower-case hex
  * `:path` — source path, or `nil` for a binary
  * `:byte_size` — size of the source
  * `:supported` — true only for CRAM 3.0 and 3.1
  * `:container_count` — containers walked, or `nil` when unsupported
  * `:eof` — whether the EOF container was present, or `nil` when unsupported
  * `:block_methods` — method atoms seen, such as `:raw` or `:gzip`
  * `:reference_sequences` — `%{name, length, md5}` maps from `@SQ`

    iex> %CRAM.Info{version: {3, 1}, supported: true, eof: true, container_count: 4}.supported
    true

---

*Consult [api-reference.md](api-reference.md) for complete listing*
