MCPcopy Create free account
hub / github.com/YatSenOS/YatSenOS-Tutorial-Volume-1 / get

Method get

lab7/src/4/src/utils/bitmap.cpp:22–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22bool BitMap::get(const int index) const
23{
24 int pos = index / 8;
25 int offset = index % 8;
26
27 return (bitmap[pos] & (1 << offset));
28}
29
30void BitMap::set(const int index, const bool status)
31{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected