blob: 2db657a68375d4de130d456db1fef1a846bafd85 [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#pragma once
#include "impeller/archivist/archive.h"
namespace impeller {
class ArchiveVector : public Archivable {
public:
static ArchiveDef kArchiveDefinition;
PrimaryKey GetPrimaryKey() const override;
const std::vector<int64_t> GetKeys() const;
bool Write(ArchiveLocation& item) const override;
bool Read(ArchiveLocation& item) override;
private:
std::vector<int64_t> keys_;
friend class ArchiveLocation;
ArchiveVector();
explicit ArchiveVector(std::vector<int64_t> keys);
ArchiveVector(const ArchiveVector&) = delete;
ArchiveVector& operator=(const ArchiveVector&) = delete;
};
} // namespace impeller