serializer, endian