CK_BITMAP_BUFFER(3)
π ck_bitmap_buffer β the manual page, bestie edition π
okay so real talk, this is the page for ck_bitmap_buffer from the Concurrency Kit manual (that's CK_BITMAP_BUFFER(3) if you're keeping receipts). it's short. it's sweet. it's lowkey iconic. let's get into it π«Ά
β¨ NAME β¨
ck_bitmap_buffer β returns pointer to bit array
like. that's the whole job. it hands you the pointer. slay.
π LIBRARY π
Concurrency Kit (libck, -lck)
that's the library you're linking against, no cap. add -lck and you're in π
π SYNOPSIS π
#include <ck_bitmap.h>
void *
ck_bitmap_buffer(ck_bitmap_t *bitmap);
look at that signature. clean. minimal. main character energy fr fr β¨
π¦ DESCRIPTION π¦
so the ck_bitmap_buffer() function returns a pointer to the actual bit array. the real one. the raw one. not a copy, not a vibe, the actual array π
for ck_bitmap pointers, that bit array is of type CK_BITMAP_WORD[], and it consists of
ck_bitmap_base(bitmap) / sizeof(CK_BITMAP_WORD)
elements. yes that's the exact expression, don't @ me, that's just the math πΈ
and what even is CK_BITMAP_WORD bestie? depends on your platform:
- On currently supported 64-bit platforms,
CK_BITMAP_WORDisuint64_t. - On currently supported 32-bit platforms,
CK_BITMAP_WORDisuint32_t.
so like, it scales with your architecture, which is honestly so thoughtful of it π
π₯ RETURN VALUES π₯
This function returns a non-NULL value.
that's it. that's the whole return contract. it will never leave you on read π no NULL check needed, periodt.
ok but seriously β the page says non-NULL, so it's non-NULL. that's the fact and we're keeping it. π
π SEE ALSO π
the whole friend group, assembled:
ck_bitmap_base(3)ck_bitmap_size(3)ck_bitmap_init(3)ck_bitmap_set(3)ck_bitmap_reset(3)ck_bitmap_test(3)ck_bitmap_clear(3)ck_bitmap_bits(3)
Additional information available at http://concurrencykit.org/ β go look, it's giving resources π
and that's the page!! written April 22, 2012, filed under CK_BITMAP_BUFFER(3), and yeah it's a 2012 baby but it still ate π mwah, go call ck_bitmap_buffer() on something, ily, bye π
π¦ where this page comes from
- alpine 3.24: ck-doc 0.7.2-r1 Β· BSD-2-Clause AND Apache-2.0
- debian bookworm: libck-dev 0.7.1-10 Β· BSD-2-Clause
- debian trixie: libck-dev 0.7.2-6 Β· BSD-2-Clause
- epel 10: ck-devel 0.7.2-1.el10_1 Β· BSD-2-clause AND Apache-2.0 AND BSD-3-clause
- epel 9: ck-devel 0.7.0-10.el9 Β· BSD
- fedora 43: ck-devel 0.7.2-2.fc43 Β· BSD-2-clause AND Apache-2.0 AND BSD-3-clause
- fedora 43: ck-devel 0.7.2-2.fc43 Β· BSD-2-clause AND Apache-2.0 AND BSD-3-clause
- fedora 44: ck-devel 0.7.2-4.fc44 Β· BSD-2-clause AND Apache-2.0 AND BSD-3-clause
- fedora 44: ck-devel 0.7.2-4.fc44 Β· BSD-2-clause AND Apache-2.0 AND BSD-3-clause
- nixos 26.05: ck 0.7.2
- nixpkgs unstable: ck 0.7.2
- opensuse-leap 16.0: ck-devel 0.7.2-bp160.1.9 Β· Apache-2.0 AND BSD-2-Clause
- opensuse-leap 16.0: ck-devel 0.7.2-bp160.1.9 Β· Apache-2.0 AND BSD-2-Clause
- opensuse-leap 16.0: ck-devel 0.7.2-bp160.1.9 Β· Apache-2.0 AND BSD-2-Clause
- ubuntu jammy: libck-dev 0.7.1-6ubuntu2 Β· BSD-2-Clause
- ubuntu noble: libck-dev 0.7.1-13build1 Β· BSD-2-Clause
- ubuntu questing: libck-dev 0.7.2-5ubuntu1
- ubuntu resolute: libck-dev 0.7.2-5ubuntu2 Β· BSD-2-Clause
- ubuntu stonking: libck-dev 0.7.2-11 Β· BSD-2-Clause
- Copyright 2012-2013 Samy Al Bahra
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms