mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-03 01:38:52 +00:00
AK: Add conversion functions for packed DOS time format
This also adjusts the FATFS code to use the new functions and removes the now redundant old conversion functions.
This commit is contained in:
parent
7e915b145b
commit
361df6eff8
Notes:
sideshowbarker
2024-07-17 10:10:18 +09:00
Author: https://github.com/Ollrogge
Commit: 361df6eff8
Pull-request: https://github.com/SerenityOS/serenity/pull/17224
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/drunderscore
Reviewed-by: https://github.com/timschumi
7 changed files with 98 additions and 39 deletions
|
@ -39,14 +39,11 @@ private:
|
|||
static constexpr u8 lfn_entry_character_termination = 0x00;
|
||||
static constexpr u8 lfn_entry_unused_byte = 0xFF;
|
||||
|
||||
static constexpr u16 first_fat_year = 1980;
|
||||
|
||||
static constexpr u8 normal_filename_length = 8;
|
||||
static constexpr u8 normal_extension_length = 3;
|
||||
|
||||
static ErrorOr<NonnullOwnPtr<KString>> compute_filename(FATEntry&, Vector<FATLongFileNameEntry> const& = {});
|
||||
static StringView byte_terminated_string(StringView, u8);
|
||||
static Time fat_date_time(FATPackedDate, FATPackedTime);
|
||||
|
||||
ErrorOr<Vector<BlockBasedFileSystem::BlockIndex>> compute_block_list();
|
||||
ErrorOr<NonnullOwnPtr<KBuffer>> read_block_list();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue