e-CryptIt Engine Xojo Plugin - Encodings Xojo Plugin |

# UUCoderStream Class (console safe)

To handle UUEncoding and UUDecoding.
Note
The UUCoderStream has internal buffers of about 14 Kb, so it will need at least 14 Kb + ~4 Kb of free memory to construct the class.

Object
UUCoderStream

class UUCoderStream

#### Constructors

UUCoderStream (console safe) | One of 3 constructors for the UUCoderStream class.
UUCoderStream (console safe) | One of 3 constructors for the UUCoderStream class.
UUCoderStream (console safe) | One of 3 constructors for the UUCoderStream class.

#### Properties

EOF (console safe) | This property is used when decoding to determine if the end of the stream is reached.
ErrorValue (console safe) | This property returns the error code for the last operation. Zero means no error, another value means a file error. The code used by the File Manager, see Inside Macintosh at the Apple Website.
FileName (console safe) | This property contains the original name of the file that is being decoded right after the stream was constructed. When in Encoding mode then this property only contains the name that was passed in the constructor.

#### Methods

Close (console safe) | To close the stream and flush all buffers. The stream will do this by itself if it has not been closed when deconstructed. If closing, or any part of the finishing process was not successful, then the ErrorValue property of the class will contain a non-zero value.
Read (console safe) | The method to use to read data from a stream in decoding mode. The stream will evaluate the data size to read for you according to its internal buffers. If reading was not successful then the ErrorValue property of the class will contain a non-zero value.
SetDecodedFilePermissions (console safe) | Use this method to restore unix permissions of a decoded file. This method should be used right after the close method is called on the stream, right after decoding a file. This method does nothing in encoding mode, and it does nothing if the stream has not been closed when in decoding mode.
Write (console safe) | The method to use to add data to a stream in encoding mode. If writing was not successful then the ErrorValue property of the class will contain a non-zero value.

#### Supported Platforms:

- macOS Intel 64 bit
- macOS Apple Silicon
- Windows 32 bit
- Windows 64 bit
- Windows ARM 64 bit
- Linux 32 bit
- Linux 64 bit
- Linux ARM 32 bit
- Linux ARM 64 bit
- iOS