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