mirror of
https://github.com/facebook/sapling.git
synced 2024-10-05 06:18:07 +03:00
9fa292b9ed
Reviewed By: genevievehelsel Differential Revision: D36429182 fbshipit-source-id: 7d355917abf463493c37139856810de13e1090ff
26 lines
737 B
C++
26 lines
737 B
C++
/*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This software may be used and distributed according to the terms of the
|
|
* GNU General Public License version 2.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <folly/io/IOBuf.h>
|
|
|
|
namespace facebook::eden {
|
|
|
|
/**
|
|
* Represents data that may come from a buffer or a file descriptor.
|
|
*
|
|
* EdenFS does not currently support splicing between the FUSE device
|
|
* pipe and the backing files in the overlay, but there's an opportunity
|
|
* to improve performance on large files by enabling FUSE_CAP_SPLICE_READ or
|
|
* FUSE_CAP_SPLICE_WRITE.
|
|
*
|
|
* So pretend we have a type that corresponds roughly to libfuse's fuse_bufvec.
|
|
*/
|
|
using BufVec = std::unique_ptr<folly::IOBuf>;
|
|
|
|
} // namespace facebook::eden
|