JanetDocsPlaygroundI'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
sogaiuPlayground
(buffer/bit (buffer/new-filled 1 48) 4)
# => true
sogaiuPlayground
(buffer/bit @"0" 4)
# => true
sogaiuPlayground
(buffer/bit @"1" 0)
# => true
sogaiuPlayground