first helper functions towards an API to be used by a flow

still reading does not expose the ``Cstruct.t`` of the ``APPLICATION_DATA``...