BetterStreams
v1.0
.Net library consisting of three classes for simplified asynchronous I/O (AsyncStream), using alternate data streams (AlternateStreams), and efficient stream peeking and seeking (BetterBufferedStream). BetterStreams can easily improve the performance of new or existing applications, sometimes dramatically, with as little as a single-line change to the code.
AsyncStream wraps an existing stream and provides asynchronous I/O via the standard Read(), ReadByte(), Write(), and WriteByte() methods; if called on the wrapped stream directly these would require waiting for I/O to the underlying device (such as a disk) but the AsyncStream asynchronously and automatically fills or flushes its internal buffer from or to the wrapped stream using a background thread and will never block so long as sufficient bytes are available in the buffer. Even if your application logic is already built around synchronous I/O, making it asynchronous typically requires nothing more than wrapping the original stream in an AsyncStream. AsyncStreams also provide elegant exception handling, properties for fine-tuning performance and behavior when desired, and, like BetterBufferedStreams, efficient seeking.
AlternateStreams enables you to read, write, delete, create and list alternate data streams (ADS) in an NTFS file. Under NTFS, each file has a "main" unnamed stream (this is the one the Framework`s file I/O classes manipulate) as well as zero or more "alternate" named streams; for example, Internet Explorer uses an alternate stream named "Zone.Identifier" to record which security zone a downloaded file came from. Aside from conveniently storing metadata, they can also be used to create "compound storage" for application data; instead of, for example, sequentially serializing ten objects to the "main" fie stream (requiring the entire file to be rewritten if any but the last object changes) each object can be serialized to its own, individually modifiable alternate stream.
BetterStreams Related Downloads










The SmartFTP FTP Library ActiveX component (COM) provides file transfer functionality for the FTP and SFTP protocol.










A professional-quality ActiveX control to convert any application into time-limited shareware. Generate serials (registration keys) to register it. Online validation on your own website to track and limit serial use. Easy to implement and flexible.










LLCryptoLib is a .NET library which allows programmers to easily add encryption, integrity and authentication services to their software. It is compatible with MS .NET and Novell Mono environments. It also provides shredding methods.










ODAC is a VCL/VCL.NET/CLX component library for fast direct access to Oracle from Delphi, C++Builder, and Kylix. Includes comprehensive support for Oracle functionality, including Oracle TAF, Advanced Queuing, and distributed transactions.










Serial Port Control is an inexpensive royalty-free component. It supports VB, VB.Net, C#, Borland Delphi, Borland Builder. Just put it on a form and you`ve got all the functionality you need to access an RS232 port.

