Add absl::Cord support to RAM file system so that internal ops/tests can use cords
PiperOrigin-RevId: 309227811 Change-Id: Ibd12b38a5e551a5520c44a7ea8856e10beb076f5
This commit is contained in:
parent
f52cfb920e
commit
e50c5d77ed
@ -79,6 +79,13 @@ class RamRandomAccessFile : public RandomAccessFile, public WritableFile {
|
||||
return Status::OK();
|
||||
}
|
||||
|
||||
#if defined(PLATFORM_GOOGLE)
|
||||
Status Append(const absl::Cord& cord) override {
|
||||
data_->append(cord.char_begin(), cord.char_end());
|
||||
return Status::OK();
|
||||
}
|
||||
#endif
|
||||
|
||||
Status Close() override { return Status::OK(); }
|
||||
Status Flush() override { return Status::OK(); }
|
||||
Status Sync() override { return Status::OK(); }
|
||||
|
Loading…
Reference in New Issue
Block a user