e-CryptIt Engine Xojo Plugin - Encodings Xojo Plugin |
|
UUCoderStream Class (console safe)
To handle UUEncoding and UUDecoding.
NoteThe 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
Properties
EOF | This property is used when decoding to determine if the end of the stream is reached. |
ErrorValue | 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 | 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 | 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 | 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 | 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 | 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 bitmacOS Apple SiliconWindows 32 bitWindows 64 bitWindows ARM 64 bitLinux 32 bitLinux 64 bitLinux ARM 32 bitLinux ARM 64 bitiOS