blob: e687342cec67a7844127428175e4233b6f28ef55 [file] [log] [blame]
// Copyright 2017 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
library fuchsia.mem;
/// A Buffer for data whose size is not necessarily a multiple of the page
/// size.
///
/// VMO objects have a physical size that is always a multiple of the page
/// size. As such, VMO alone cannot serve as a buffer for arbitrarly sized
/// data. |fuchsia.mem.Buffer| is a standard struct that aggregate the VMO
/// and its size.
struct Buffer {
/// The vmo.
handle<vmo> vmo;
/// The size of the data in the vmo in bytes. This size must be smaller
/// than the physical size of the vmo.
uint64 size;
};