blob: 5e385ce0e15322003e3b7b8de8ec7442bbdc1e50 [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 FS_INSPECTABLE_H_
#define FS_INSPECTABLE_H_
#include <zircon/types.h>
namespace fs {
using blk_t = uint32_t;
class Inspectable {
public:
virtual ~Inspectable() = default;
// Reads a block at the |start_block_num| location.
virtual zx_status_t ReadBlock(blk_t start_block_num, void* out_data) const = 0;
};
} // namespace fs
#endif // FS_INSPECTABLE_H_