mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-04 01:05:58 +03:00
26 lines
364 B
C++
26 lines
364 B
C++
|
#include "NullDevice.h"
|
||
|
#include "Limits.h"
|
||
|
#include <AK/StdLib.h>
|
||
|
#include <cstring>
|
||
|
#include <cstdio>
|
||
|
|
||
|
NullDevice::NullDevice()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
NullDevice::~NullDevice()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
ssize_t NullDevice::read(byte*, size_t)
|
||
|
{
|
||
|
printf("read from null\n");
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
ssize_t NullDevice::write(const byte*, size_t bufferSize)
|
||
|
{
|
||
|
return min(GoodBufferSize, bufferSize);
|
||
|
}
|
||
|
|