blob: 2879ac42f4f7124b8703dd89408f7bf17ecef32a [file] [log] [blame]
// Copyright 2018 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.
using zx;
protocol File {
compose File1;
compose File2;
/// File defines the interface of a node which contains a flat layout of data.
protocol File1 {
compose Node1;
/// Writes data at the seek offset.
/// The seek offset is moved forward by the number of bytes written.
/// This method requires following rights: `OpenFlags.RIGHT_WRITABLE`, otherwise returns
// TODO( Remove this method when pkgfs has been deleted.
@transitional("only implemented by pkgfs")
@deprecated("replaced by File2.Write")
WriteDeprecated(struct {
data vector<uint8>:MAX_BUF;
}) -> (struct {
s zx.status;
actual uint64;