1 #include "hmbdc/Copyright.hpp" 9 namespace hmbdc {
namespace os {
18 void* open(
size_t len) {
19 addr_ = (
char*)memalign(SMP_CACHE_BYTES, len);
28 explicit operator bool()
const {
32 bool writeDone()
const {
33 return fullLen_ == len_;
36 size_t write(
void const* mem,
size_t l) {
37 auto wl = min(l, fullLen_ - len_);
39 memcpy(addr_ + len_, mem, wl);
45 size_t fullLen()
const {
Definition: TypedString.hpp:74
Definition: DownloadMemory.hpp:11
Definition: Client.hpp:11