Clarify behavior of Buffer::CreateFromFd

PiperOrigin-RevId: 250834142
Change-Id: I7aac739c9b590adc0599926e3246bc87e21d951a
This commit is contained in:
Sandboxed API Team 2019-05-30 23:50:31 -07:00 committed by Copybara-Service
parent 6666f41ba2
commit dd2a84b980

View File

@ -35,6 +35,8 @@ class Buffer final {
Buffer& operator=(const Buffer&) = delete;
// Creates a new Buffer that is backed by the specified file descriptor.
// The Buffer takes ownership of the descriptor and will close it when
// destroyed.
static ::sapi::StatusOr<std::unique_ptr<Buffer>> CreateFromFd(int fd);
// Creates a new Buffer of the specified size, backed by a temporary file that