blob: f81a54d042ce8a41df8d57ebbe783313faf7ffb8 [file] [log] [blame]
// Copyright 2019 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.
#ifndef TOPAZ_RUNTIME_DART_UTILS_VMO_H_
#define TOPAZ_RUNTIME_DART_UTILS_VMO_H_
#include <string>
#include <fuchsia/mem/cpp/fidl.h>
namespace dart_utils {
bool VmoFromFilename(const std::string& filename, fuchsia::mem::Buffer* buffer);
bool VmoFromFilenameAt(int dirfd, const std::string& filename,
fuchsia::mem::Buffer* buffer);
zx_status_t IsSizeValid(const fuchsia::mem::Buffer& buffer, bool* is_valid);
} // namespace dart_utils
#endif // TOPAZ_RUNTIME_DART_UTILS_VMO_H_