Packmatic.Source.Random (Packmatic v1.2.0) View Source

Represents randomly generated content, which is used mostly for testing, when you want to have a particular entry generated to a specific length.

Link to this section Summary

Link to this section Types

Specs

init_arg() :: non_neg_integer()

Specs

init_result() :: {:ok, t()}

Specs

t() :: %Packmatic.Source.Random{
  bytes_remaining: non_neg_integer(),
  chunk_size: non_neg_integer(),
  template: binary()
}