Comments (2)
For example, it signals that the connection was reset and that the handle needs to be cleaned up. Code written against streams will expect this behavior to mean that the end of file was reached and it will assume that the bytes read so far represents the entirety of the entity being read.
Here I am meaning to say that when the API returns 0, normal Stream
-using code will assume that meant a successful read of the entire entity. Whereas this “safe” wrapper is basically silently truncating the read data.
from sharpfilesystem.
Yes, totally agree. They were already in the IO directory, so it would be logical to namespace them in SharpFileSystem.IO
. I think they could be useful in other projects as well. They are also simple enough to keep supporting them. So I think SharpFileSystem.IO
instead of SharpFileSystem.Internal.IO
is in order.
SafeNetworkStream
was used to normalize Socket-based streams in some hacky applications in the past. For networking read 0 can often be handled the same way as IOException (socket was closed). I agree it is dirty. It also isn't in use by any of SharpFileSystem, so I removed it.
from sharpfilesystem.
Related Issues (16)
- nuget HOT 7
- Async methods HOT 1
- GetEntitiesRecursive method stack overflow possible? HOT 2
- EnumerableCollection.ToArray() and .ToList() throw HOT 1
- transaction
- .NET Standard
- GetEntities: "Path not rooted" exception HOT 2
- No Documentation
- Readme confuses HOT 1
- SQLite-net?
- cloud file api and Projected File system are released with Win10
- Any documentation and examples?
- How should I register movers? HOT 4
- Atomic file operations: Replace, AtomicMove HOT 6
- Question: does SharpZipLibFileSystem support creating huge files? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sharpfilesystem.