Skip to content

awalsh128/Awalsh128.Text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Awalsh128 Text Processing Library

  • Provides Unix-to-Unix encoding support using the .NET Stream abstraction.
  • Library is provided under the terms of the LGPL version 2.

To decode any stream:

using (Stream encodedStream = /* Any readable stream. */)
using (Stream decodedStream = /* Any writeable stream. */)
using (var decodeStream = new UUDecodeStream(encodedStream))
{ 
    decodeStream.CopyTo(decodedStream);
    // Decoded contents are now in decodedStream.
}

To encode any stream:

bool unixLineEnding = // True if encoding with Unix line endings, otherwise false.
using (Stream encodedStream = /* Any readable stream. */)
using (Stream decodedStream = /* Any writeable stream. */)
using (var encodeStream = new UUEncodeStream(encodedStream, unixLineEnding))
{
    decodedStream.CopyTo(encodeStream);
    // Encoded contents are now in encodedStream.
}

About

Text processing library that provides Unix-to-Unix encoding support using the .NET Stream abstraction.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages