reencode

Returns a new Encodable derived from re-encoding this instance's decoded data. This may be different from the current instance's encoded data if the object was created with a non-canonical encoding.


fun reencode(newEncoding: Encoding): Encodable

Returns a new Encodable derived from re-encoding this instance's decoded data with newEncoding.