barlix v0.4.0 Barlix.Code39 View Source
This module implements the Code 39 symbology.
Link to this section Summary
Functions
Encodes the given value using code 39 symbology. Only a subset of ascii characters are supported.
Accepts the same arguments as encode/2
. Returns Barlix.code/0
or
raises Barlix.Error
in case of invalid value.
Link to this section Functions
Link to this function
encode(value, options \\ [])
View Source
encode(value, options \\ [])
View Source
encode(String.t() | charlist(), Keyword.t()) ::
{:error, binary()} | {:ok, Barlix.code()}
encode(String.t() | charlist(), Keyword.t()) :: {:error, binary()} | {:ok, Barlix.code()}
Encodes the given value using code 39 symbology. Only a subset of ascii characters are supported.
Options
:checksum
(boolean) - enables checksum. Defaults tofalse
Link to this function
encode!(value, options \\ [])
View Source
encode!(value, options \\ [])
View Source
encode!(String.t() | charlist(), Keyword.t()) :: Barlix.code() | no_return()
encode!(String.t() | charlist(), Keyword.t()) :: Barlix.code() | no_return()
Accepts the same arguments as encode/2
. Returns Barlix.code/0
or
raises Barlix.Error
in case of invalid value.