MCPcopy Create free account
hub / github.com/apple/foundationdb / write

Method write

flow/Profiler.actor.cpp:70–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68 }
69
70 Future<Void> write(void const* data, int length, int64_t offset) {
71 ASSERT(isOpen());
72 fseek(f, offset, SEEK_SET);
73 if (fwrite(data, 1, length, f) != length)
74 throw io_error();
75 return Void();
76 }
77
78 Future<Void> truncate(int64_t size) {
79 ASSERT(size == 0);

Callers 2

writeToMethod · 0.45
profileMethod · 0.45

Calls 1

VoidClass · 0.70

Tested by

no test coverage detected