MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / MemcpyOffset

Function MemcpyOffset

oneflow/core/embedding/persistent_table.cpp:68–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68void MemcpyOffset(void* dst, size_t dst_off, const void* src, size_t src_off, size_t n) {
69 std::memcpy(BytesOffset(dst, dst_off), BytesOffset(src, src_off), n);
70}
71
72void InitOrCheckMetaValue(const std::string& pathname, int64_t expected, bool init) {
73 bool exists = PosixFile::FileExists(pathname);

Callers 2

GetMethod · 0.85
PutMethod · 0.85

Calls 1

BytesOffsetFunction · 0.85

Tested by

no test coverage detected