MCPcopy Create free account
hub / github.com/bytedance/terarkdb / GetRequiredBufferAlignment

Method GetRequiredBufferAlignment

env/env_encryption.cc:325–327  ·  view source on GitHub ↗

Use the returned alignment value to allocate aligned buffer for Direct I/O

Source from the content-addressed store, hash-verified

323 // Use the returned alignment value to allocate
324 // aligned buffer for Direct I/O
325 virtual size_t GetRequiredBufferAlignment() const override {
326 return file_->GetRequiredBufferAlignment();
327 }
328
329 // Write bytes in `data` at offset `offset`, Returns Status::OK() on success.
330 // Pass aligned buffer when use_direct_io() returns true.

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected