Hi, I work on Rust stuff.
lokathor / bitfrob Goto Github PK
View Code? Open in Web Editor NEWHelps you frob those bits
Home Page: https://docs.rs/bitfrob
Helps you frob those bits
Home Page: https://docs.rs/bitfrob
Hi, I work on Rust stuff.
If we want to iterate an unsigned int (8, 16, 32) and read out X many bits at a time that should just be a single function someone calls and they get the iterator
pub fn iter_bit_elems(data: u32, bit_count: u32)
-> impl Iterator<Item=u32>;
"while" should be "and also".
make the comparison with using a [u8;2]
eg
struct U32RegionMask<const L: u32, const H: u32>;
impl<const L: u32, const H: u32> U32RegionMask<L, H> {
pub const OUT: u32 = {
/* const expr here */
};
}
We will eventually want to support many bit-packed types I suspect, but to start we should add a type for u8x2 (stored as u16), because the GBA needs it for Video Mode 4 VRAM access. This should be a very simple test case on how we might want to implement bit-packed data later.
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.