mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 06:48:49 +00:00
Add a Unix namespace for foo_t types.
This allows me to keep prototyping things on a random desktop machine, even if that machine has its own ideas about foo_t types.
This commit is contained in:
parent
c6d6ba7512
commit
1f41a36c52
Notes:
sideshowbarker
2024-07-19 18:48:10 +09:00
Author: https://github.com/awesomekling
Commit: 1f41a36c52
16 changed files with 116 additions and 49 deletions
|
@ -13,15 +13,15 @@ FullDevice::~FullDevice()
|
|||
{
|
||||
}
|
||||
|
||||
ssize_t FullDevice::read(byte* buffer, size_t bufferSize)
|
||||
Unix::ssize_t FullDevice::read(byte* buffer, Unix::size_t bufferSize)
|
||||
{
|
||||
printf("read from full device\n");
|
||||
size_t count = min(GoodBufferSize, bufferSize);
|
||||
Unix::size_t count = min(GoodBufferSize, bufferSize);
|
||||
memset(buffer, 0, count);
|
||||
return count;
|
||||
}
|
||||
|
||||
ssize_t FullDevice::write(const byte*, size_t bufferSize)
|
||||
Unix::ssize_t FullDevice::write(const byte*, Unix::size_t bufferSize)
|
||||
{
|
||||
if (bufferSize == 0)
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue