JanetDocsI'm feeling luckyGithub sign in

buffer/bit



    cfunction

    (buffer/bit buffer index)
    
    Gets the bit at the given bit-index. Returns true if the bit is set,
    false if not.


4 examplesSign in to add an example
Loading...
(buffer/bit (buffer/new-filled 1 (chr "0")) 4)
# => true
sogaiu
(buffer/bit (buffer/new-filled 1 48) 4)
# => true
sogaiu
(buffer/bit @"0" 4)
# => true
sogaiu
(buffer/bit @"1" 0)
# => true
sogaiu