sapling/eden/fs/model/BlobMetadata.h
Xavier Deguillard a29d465ee8 fs: fix license header
Summary:
With Facebook having been renamed Meta Platforms, we need to change the license
headers.

Reviewed By: fanzeyi

Differential Revision: D33407812

fbshipit-source-id: b11bfbbf13a48873f0cea75f212cc7b07a68fb2e
2022-01-04 15:00:07 -08:00

29 lines
572 B
C++

/*
* Copyright (c) Meta Platforms, Inc. and 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