e-CryptIt Engine Xojo Plugin - Encodings Xojo Plugin |

# YEncEncoder.EncodePartToStream Method (console safe)

To write a multi part yEnc file to a existing stream use the EncodePartToStream function.

EncodePartToStream(
destination as IBinaryStreamWriter) as Boolean

#### Parameters

destination
  The location and the name of the destination file.

#### Returns

Boolean

#### Remarks

Returns True if it was successful, false if not. Use the LastError property to determine which error occured.
This function should only be used after a call to the BeginMultiPart function. (See the example project that comes with the plugin).
Always create a new instance of the YEncEncoder class for each file to encode.
Possible errors that this function can generate:

- 0 No Error.
- -1803 Destination stream was nil.
- -10100 Unknown internal error.

  #### See Also

  YEncEncoder Class