MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / DataStream

Method DataStream

Kernel/src/streams.cpp:37–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37DataStream::DataStream(size_t bufSize){
38 bufferSize = bufSize;
39 bufferPos = 0;
40
41 buffer = reinterpret_cast<uint8_t*>(kmalloc(bufferSize));
42}
43
44DataStream::~DataStream(){
45 kfree(buffer);

Callers

nothing calls this directly

Calls 1

kmallocFunction · 0.85

Tested by

no test coverage detected