mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 23:07:18 +03:00
a29d465ee8
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
29 lines
572 B
C++
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
|