renaming from PortablePackedStruct to EncodedValue