mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Clarify behavior of Buffer::CreateFromFd
PiperOrigin-RevId: 250834142 Change-Id: I7aac739c9b590adc0599926e3246bc87e21d951a
This commit is contained in:
parent
6666f41ba2
commit
dd2a84b980
|
@ -35,6 +35,8 @@ class Buffer final {
|
||||||
Buffer& operator=(const Buffer&) = delete;
|
Buffer& operator=(const Buffer&) = delete;
|
||||||
|
|
||||||
// Creates a new Buffer that is backed by the specified file descriptor.
|
// 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);
|
static ::sapi::StatusOr<std::unique_ptr<Buffer>> CreateFromFd(int fd);
|
||||||
|
|
||||||
// Creates a new Buffer of the specified size, backed by a temporary file that
|
// Creates a new Buffer of the specified size, backed by a temporary file that
|
||||||
|
|
Loading…
Reference in New Issue
Block a user