BetterStreams 1.0

许可: 免费试用 ‎文件大小: 618.50 KB
‎用户评分: 3.0/5 - ‎1 ‎评分

.Net 库由三个类组成,用于简化异步 I/O(异步流),使用备用数据流(备用流)和高效的流窥视和寻寻(更好的缓冲流)。 BetterStream 可以轻松地提高新应用程序或现有应用程序的性能,有时非常显著,只要对代码进行单行更改。 AsyncStream 包装现有流,通过标准读取()、读取字节()、写入()和写入字节()方法提供异步 I/O;如果直接调用包装的流,这些将需要等待 I/O 到基础设备(如磁盘),但 AsyncStream 异步和自动填充或刷新其内部缓冲区从或刷新到包装的流使用后台线程,并且永远不会阻止,只要有足够的字节在缓冲区中可用。 即使应用程序逻辑已经围绕同步 I/O 构建,使其异步通常只需要在 AsyncStream 中包装原始流。 AsyncStream 还提供优雅的异常处理、根据需要微调性能和行为的属性,以及像 BetterBufferedStream 一样,高效寻求。 备用流使您能够在 NTFS 文件中读取、写入、删除、创建和列出备用数据流 (ADS)。 在 NTFS 下,每个文件都有一个 "正向"未命名流(这是框架的文件 I/O 类操作的流),以及零个或多个 "替代" 命名流;例如,Internet Explorer 使用名为 "区域.Identifier"" 的备用流来记录下载文件来自哪个安全区域。 除了方便地存储元数据外,它们还可用于创建应用程序数据的"复合存储";例如,可以按顺序将十个对象序列化为 "main" fie 流(如果最后一个对象更改,要求重写整个文件),每个对象都可以序列化为自己的、可单独修改的备用流。

版本历史记录

  • 版本 1.0 发布于 2007-05-27

软件信息

终端用户许可协议

BetterStreams Academic/Evaluation License Agreement This license agreement ("License") is a legal agreement between you (or your company, if you are authorized to act on its behalf and bind it to this agreeement) as the "Licensee" and Jeff Pasternack ("Licensor") for the BetterStreams library ("BetterStreams"), including all accompanying software, source code, documentation, other accompanying media, and any future or updated versions of these provided by Licensor. 0. Preamble This Academic/Evaluation license is free, and significantly more restrictive than the Developer license sold by the Licensor. It prohibits distribution of both the BetterStreams.dll library and any software (compiled or as source) linking to or otherwise using it, and permits use of BetterStreams to develop only applications that will be used solely by their original author for non-profit academic research or evaluation purposes. For non-Academics (Academics are defined as students and faculty of accredited colleges and universities) this License expires 30 days after you agree to it, at which time you must either purchase a Developer license or destroy all copies of the software. 1. Grant of License Licensor grants the Licensee a non-transferable, non-exclusive license to BetterStreams to: a) Install BetterStreams on a single computer for use by a single person. b) Create one copy for backup purposes c) Use BetterStreams to develop applications used solely by you for non-profit academic research or to evaluate BetterStreams pursuant to deciding whether or not you would like to purchase a Developer license. 2. Limitations and Restrictions on License a) Licensee may not use BetterStreams to develop libraries, components, tools or software of any kind that provides, in whole or in part, similar functionality to BetterStreams. b) Other than as explicitly permitted above in the Grant of License, Licensee may not in any way reproduce, copy, distribute or share BetterStreams in whole or in part. c) Licensee may not use BetterStreams for any purpose prohibited by law. d) Licensee may not distribute BetterStreams or any part thereof, nor may the Licensee distribute any software that links to or otherwise uses BetterStreams. e) Licensee may not allow others to use BetterStreams or any applications developed with BetterStreams f) Licensee may not use BetterStreams to develop applications that are not for non-profit, academic research or evaluation of BetterStreams. g) If the Licensee is not a student or faculty member at an accredited college or university, this license automatically terminates after 30 days at which time all copies of BetterStreams components (including, but not limited to, BetterStreams.dll, documentation, source code, and other media) must be destroyed. 3. You assert and agree that you have not previously been granted a license of any kind to use BetterStreams. 4. Intellectual Property Rights All intellectual property rights to BetterStreams and any accompanying media are kept and owned by Licensor. BetterStreams is protected by United States copyright law and international treaties. The Licensee may distribute BetterStreams.dll only when done in pursuance of a binding license agreement that is, at minimum, as protective of the Licensor and BetterStreams as this License. The Licensee must make reasonable efforts to prevent violations of such agreements as they concern Licensor and BetterStreams. 5. Support Licensor is not obligated to provide support or other assistance for BetterStreams in any form. 6. No Reverse-Engineering You may not disassemble, reverse-engineer, decompile, or otherwise attempt to obtain information regarding BetterStreams internals, methods or construction. 7. Disclaimer of Warranty THERE IS NO WARRANTY FOR BETTERSTREAMS, TO THE EXTENT PERMITTED BY APPLICABLE LAW. BETTERSTREAMS IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF BETTERSTREAMS IS WITH YOU, THE LICENSEE. SHOULD BETTERSTREAMS PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, CORRECTION, AND DAMAGES OF ANY KIND THAT OCCUR AS A RESULT, INCLUDING BUT NOT LIMITED TO LOSS OF REVENUE OR POTENTIAL REVENUE AND LOSS OF DATA. NO STATEMENT OR CLAIM, WRITTEN OR OTHERWISE, FROM THE LICENSOR OR HIS AGENTS SHALL CREATE A WARRANTY OF ANY KIND. 8. Limitation of Liability IN NO EVENT OR CIRCUMSTANCE WILL LICENSOR BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE BETTERSTREAMS (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF BETTERSTREAMS TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. IN NO EVENT SHALL LICENSORS TOTAL LIABILITY FROM OR RELATING TO BETTERSTREAMS OR THIS LICENSE EXCEED THE AMOUNT PAID BY THE LICENSEE FOR THIS LICENSE, EXCEPT WHERE SUCH LIMITATION OR EXCLUSION IS PROHIBITED BY LAW. 9. Termination Without limitation to other rights of Licensor, this License to use BetterStreams is automatically terminated and revoked if you fail to completely abide by the terms and conditions of this License. If this should occur you must destroy all copies of BetterStreams and its components, including (but not limited to) backups, source code, documentation, software and other associated media. 10. Governing Law This License shall be governed by the laws of California as applicable to contracts made in California between residents of California. This License supercedes and is exclusive to any other agreements or statements, written or otherwise, between Licensee and Licensor. 11. General In the event that any provision of this License is determined to be invalid, void, or unenforcable, such provision shall be removed from this License without effect or impairment of any other remaining provisions of this License. 12. Amendments This License may be modified only when done in writing and signed by both Licensee and Licensor.