Encode toEncode(final String text) => Encode( isValid, format, text, copyUint32ListFromOwnedFfiPtr(data, length), length, copyStringFromOwnedFfiPtr(error), );