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

Method Read

Kernel/src/arch/x86_64/keyboard.cpp:46–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 }
45
46 ssize_t Read(size_t offset, size_t size, uint8_t *buffer){
47 if(size > keyCount) size = keyCount;
48
49 if(!size) return 0;
50
51 for(unsigned short i = 0; i < size; i++){
52 ReadKey(buffer++); // Insert key and increment
53 }
54
55 return size;
56 }
57 };
58
59 KeyboardDevice kbDev("keyboard0");

Callers

nothing calls this directly

Calls 1

ReadKeyFunction · 0.85

Tested by

no test coverage detected