Change from codec to only decoder
Return field data as buffer slice
Allow throwing encoding exceptions
Implemented frame codec
Updated comments.
Added failsafe assert condition.