Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 3, 2024. It is now read-only.
/ set_bits Public archive

A Rust library which sets and clears bits on memory.

Notifications You must be signed in to change notification settings

toku-sa-n/set_bits

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

set_bits

NOTE: This library is no longer maintained. Consider using the following crates:

set_bits is a Rust library for setting and clearing bits on memory.

Usage

Add set_bits to your Cargo.toml file.

use set_bits;

// Set 20 bits from the 10th bit of address 0xCAFEBABE
set_bits::set(0xCAFEBABE, 10, 20);

// Clear 20 bits from the 10th bit of address 0xCAFEBABE
set_bits::clear(0xCAFEBABE, 10, 20);

License

Apache-2.0 or MIT

About

A Rust library which sets and clears bits on memory.

Resources

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages