Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LemonOSProject/LemonOS
/ CharacterBuffer
Method
CharacterBuffer
Kernel/src/characterbuffer.cpp:8–13 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
6
#include <lock.h>
7
8
CharacterBuffer::CharacterBuffer(){
9
buffer = (char*)kmalloc(bufferSize);
10
bufferPos = 0;
11
lock = 0;
12
lines = 0;
13
}
14
15
size_t CharacterBuffer::Write(char* _buffer, size_t size){
16
acquireLock(&(this->lock));
Callers
nothing calls this directly
Calls
1
kmalloc
Function · 0.85
Tested by
no test coverage detected