View Source UBootEnv.Serializer (uboot_env v1.0.1)

Encode and decode a U-Boot environment data

The U-Boot environment data looks like this:

  • "<key>=<value>\0" for each key-value pair
  • "\0" an empty key-value pair to terminate the list. This looks like "\0\0" when viewing the file in a hex editor.

Link to this section Summary

Functions

Decode a U-Boot environment binary data to a map of key/value pairs

Encode a list of key value pairs into their binary form.

Link to this section Functions

@spec decode(binary()) :: map()

Decode a U-Boot environment binary data to a map of key/value pairs

@spec encode(map()) :: binary()

Encode a list of key value pairs into their binary form.