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

Class CharacterBuffer

Kernel/include/characterbuffer.h:7–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include <stddef.h>
6
7class CharacterBuffer{
8public:
9 size_t bufferSize = CHARBUFFER_START_SIZE;
10 size_t bufferPos = 0;
11 int lines;
12 char* buffer;
13 bool ignoreBackspace = false;
14
15 CharacterBuffer();
16
17 size_t Write(char* buffer, size_t size);
18 size_t Read(char* buffer, size_t count);
19
20 void Flush();
21private:
22 volatile int lock = 0;
23};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected