GithubHelp home page GithubHelp logo

lokathor / bitfrob Goto Github PK

View Code? Open in Web Editor NEW
29.0 3.0 3.0 1.91 MB

Helps you frob those bits

Home Page: https://docs.rs/bitfrob

Rust 100.00%
apache-license mit-license rust rust-crate zlib-license

bitfrob's Introduction

Hi, I work on Rust stuff.

bitfrob's People

Contributors

ids1024 avatar lokathor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bitfrob's Issues

todo: iterate u{8,16,32} by X bits at a time

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>;

u8x2 docs are poor

"while" should be "and also".

make the comparison with using a [u8;2]

todo: u8x2

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.