sapling/eden/fs/utils/BufVec.h
Chad Austin 9fa292b9ed standardize namespaces on C++17 syntax
Reviewed By: genevievehelsel

Differential Revision: D36429182

fbshipit-source-id: 7d355917abf463493c37139856810de13e1090ff
2022-05-17 10:12:56 -07:00

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