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

Function memcpyStringInner

bindings/java/fdbJNI.cpp:1369–1374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1367}
1368
1369void memcpyStringInner(uint8_t* buffer, int& offset, const uint8_t* data, const int& length) {
1370 memcpy(buffer + offset, &length, sizeof(jint));
1371 offset += sizeof(jint);
1372 memcpy(buffer + offset, data, length);
1373 offset += length;
1374}
1375
1376void memcpyString(uint8_t* buffer, int& offset, const FDBKey& key) {
1377 memcpyStringInner(buffer, offset, key.key, key.key_length);

Calls 1

memcpyFunction · 0.85

Tested by

no test coverage detected