blob: 556dd3c31c21aedbb67b0a324e265dcf50079da8 [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 "flutter/fml/macros.h"
#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();
ArchiveVector(std::vector<int64_t> keys);
FML_DISALLOW_COPY_AND_ASSIGN(ArchiveVector);
};
} // namespace impeller