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

Method initialize

lab8/src/4/src/utils/bitmap.cpp:9–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7}
8
9void BitMap::initialize(char *bitmap, const int length)
10{
11 this->bitmap = bitmap;
12 this->length = length;
13
14 int bytes = ceil(length, 8);
15
16 for (int i = 0; i < bytes; ++i)
17 {
18 bitmap[i] = 0;
19 }
20}
21
22bool BitMap::get(const int index) const
23{

Callers

nothing calls this directly

Calls 1

ceilFunction · 0.70

Tested by

no test coverage detected