packages/library/Odin_bitset
o

Odin_bitset

v4b09af5library

Bitset support for odin

0 stars0 forksUnknownupdated 2 days ago
Open repo

Bitset

Example

import "bitset"
import "core:fmt"

main :: proc() {
    b := bitset.create(0b0010000111)
    fmt.println(bitset.to_string(&b))
}

API

// Create new bitset
bitset.create()
bitset.create(0)

// Set bits
bitset.set_bit(&b, 10, 1)

// Get bits
bitset.get_bit(&b, 10)

// Get string output
bitset.to_string(&b)
Package Info
Version
v4b09af5
License
Unknown
Author
@AldieNightStar
Type
library
Forks
0
Created
2 days ago
Updated
2 days ago
Health
maintained
has releases
has readme
has license
Activity
last 56 weeks