ExPng.Encodeable behaviour (ExPng v0.2.0)

ExPng.Encodeable is a basic behaviour to mark a raw data chunk as encodeable and provide a callback to convert the struct to a binary bytestring to be written to a PNG file.

Link to this section Summary

Link to this section Callbacks

Link to this callback

to_bytes(term, arg2)

Specs

to_bytes(term(), ExPng.maybe(keyword())) :: binary()