ExAIS.Data.Ais (ExAis v0.2.4)
View SourceHandle decoding of the AIS Payload to a convenient Map.
Summary
Functions
Parse an AIS payload.
Takes a bitstring() payload and non_neg_integer() padding and return {:ok, Map} when decoding succeede, or {:invalid, %{}}.
Functions
Parse an AIS payload.
Takes a bitstring() payload and non_neg_integer() padding and return {:ok, Map} when decoding succeede, or {:invalid, %{}}.
@spec parse(binary(), non_neg_integer(), [non_neg_integer()]) :: {:invalid, %{}} | {:ok, any()}