Java data layout framework for use in efficient messaging