Extent.h
Go to the documentation of this file.
1 /****
2  * Extent.h
3  *
4  * Copyright 2023 mikee47 <mike@sillyhouse.net>
5  *
6  * This file is part of the IFS Library
7  *
8  * This library is free software: you can redistribute it and/or modify it under the terms of the
9  * GNU General Public License as published by the Free Software Foundation, version 3 or later.
10  *
11  * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
12  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13  * See the GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along with this library.
16  * If not, see <https://www.gnu.org/licenses/>.
17  *
18  ****/
19 
20 #pragma once
21 
22 #include <Storage/Types.h>
23 
24 namespace IFS
25 {
40 struct Extent {
42  uint32_t length;
43  uint16_t skip;
44  uint16_t repeat;
45 };
46 
47 } // namespace IFS
uint32_t storage_size_t
Definition: Components/Storage/src/include/Storage/Types.h:19
Definition: DirectoryTemplate.h:37
Defines the location of a contiguous run of file data.
Definition: Extent.h:40
uint32_t length
In bytes.
Definition: Extent.h:42
uint16_t skip
Skip bytes to next repeat.
Definition: Extent.h:43
uint16_t repeat
Number of repeats.
Definition: Extent.h:44
storage_size_t offset
From start of partition.
Definition: Extent.h:41