VirtualStream, SeekableReadonlyStream and MarkableForwardOnlyEventingReadStream

原创 2007年09月29日 05:02:00

This is interesting!

I am off projects for support these days, just bored and starting to poke Microsoft pipeline component framework for fun. It is interesting to discover that in Microsoft.BizTalk.Streaming namespace:

·         They have an implementation for VirtualStream! I am always using the SDK sample one but seems like this very implementation has more functions (and I believe is more stable) than the SDK free sample. I tried to compare the two and did find some differences, although the reflector generated code might not be accurate. I then opened the Microsoft SDK sample project (ArbitoryXPathHandler), remove the VirtualStream.cs and add reference of Microsoft.Streaming. I recompile the project and everything seems fine! I didn’t try to run the sample though, I just assume it works the same way.

·         They have a same implementation for ReadOnlySeekableStream as well.

·         They have another one, MarkableForwardOnlyEventingReadStream, as its name implies, you can MarkPosition and ResetPosition which helps a lot! By far, I didn’t find any special use of this stream but it seems more than just markable functions, as it is just everywhere within the default flatfile, xml pipeline implementations. And I also believe they are pretty stable and memory efficient as it is used in flat file disassembler.

版权声明:本文为博主原创文章,未经博主允许不得转载。

相关文章推荐

CodeForces - 668B Little Artem and Dance(规律题)

Little Artem and DanceLittle Artem is fond of dancing. Most of all dances Artem likes rueda — Cuban ...

基于Problem Solving with Algorithms and Data Structures using Python的学习记录(6-1)——Tree

6.1.目标 要理解树数据结构是什么,以及如何使用它。 查看树如何用于实现 map 数据结构。 使用列表实现树。 使用类和引用来实现树。 实现树作为递归数据结构。 使用堆实现优先级队列。 6.2.树的...

Codeforces Round #395 (Div. 2)E: Timofey and remoduling(数学+数论)

E. Timofey and remodulingtime limit per test:2 secondsmemory limit per test:256 megabytesinput:stand...

Codeforces Round #390 (Div. 2)DFedor and coupons (排序+优先队列)

D. Fedor and couponstime limit per test:4 secondsmemory limit per test:256 megabytesinput:standard i...

Leetcode 122. Best Time to Buy and Sell Stock II 股票买卖2 解题报告

1 解题思想首先请看下第一个问题: Leetcode 121. Best Time to Buy and Sell Stock 股票买卖 解题报告 题目给定的数组还是一样的含义,依旧代表股票的价...

hdu 5108 Alexandra and Prime Numbers(素数)

Alexandra and Prime Numbers Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (...

codeforce之 Bear and Colors

题目: Bear Limak has n colored balls, arranged in one long row. Balls are numbered 1 through n,...

hdu_5680_zxa and set(想法题)

题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=5680 题意: 问题描述 zxa有一个集合A=\{a_1,a_2,\cdots,a_n\}...

Avro技术应用_1. Schema and Code Generation

Github 源码路径:https://github.com/Hanmourang

POJ---2003-Hire and Fire

Hire and Fire Time Limit: 1000MS   Memory Limit: 30000K Total Submissions: 2342   ...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

(最多只允许输入30个字)