sapling/eden/fs/model/BlobMetadata.h
Michael Cuevas 57ca56df18 Move BlobMetadata.h from fs/store to fs/model
Summary: Used codemod to modify all references to eden/fs/store/BlobMetadata.h. Changed them to eden/fs/model/BlobMetadata.h and moved the file to the model director

Reviewed By: genevievehelsel

Differential Revision: D32397203

fbshipit-source-id: 0c17b96d1aa33ba32fefe43ea5c29a645c577765
2021-11-17 11:31:26 -08:00

29 lines
570 B
C++

/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This software may be used and distributed according to the terms of the
* GNU General Public License version 2.
*/
#pragma once
#include <cstdint>
#include "eden/fs/model/Hash.h"
namespace facebook::eden {
/**
* A small struct containing both the size and the SHA-1 hash of
* a Blob's contents.
*/
class BlobMetadata {
public:
BlobMetadata(Hash20 contentsHash, uint64_t fileLength)
: sha1(contentsHash), size(fileLength) {}
Hash20 sha1;
uint64_t size;
};
} // namespace facebook::eden