rubendal / bitstream Goto Github PK
View Code? Open in Web Editor NEWStream wrapper to read/write bits and other data types
Stream wrapper to read/write bits and other data types
When "ReadBits" or "ReadByte" are called the BitStream position doesn't advance. No call to "AdvanceBit" or similar functionality is invoked.
The user is unable to advance the BitPosition manually as BitPosition does not have a setter.
This doesn't seem to do what I was hoping. For example... I wanted to be able to read the next 3 bits into a .NET integer resulting in a value 0 to 7. Then read the next 9 bits into a .NET integer with a value of 0 to 511.
Can it do this?
Dim i as Integer = Bitstream.ReadBits(3) 'read 3 bits into integer
Haven't tried yet, am currently comparing some various implementations, but does this library support reading from a stream without a known length, such as a network stream? I did a quick glance, and saw usage of Stream.CopyTo
in the constructor, where it appeared to essentially just read and copy the entire stream and used that data, making this appear to work more as a buffer, not a stream.
This looks like a very good solution for BitStream situations.
Any chance you can make the corresponding nuget package compatible with UWP apps?
Oliver
my bad ๐
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.