PackageItemFile¶
class PackageItemFile : public DiskFile
A File
implementation that provides access to an item in an Amplitude package file.
Functions¶
Name | Description |
---|---|
PackageItemFile | Constructs a new PackageItemFile instance. |
GetPath | @inherit |
Eof | @inherit |
Read | @inherit |
Write | @inherit ! |
Length | @inherit |
Seek | @inherit |
Position | @inherit |
Function Details¶
Eof¶
bool Eof() override
@inherit
GetPath¶
[[nodiscard]] AmOsString GetPath() const override
@inherit
Length¶
AmSize Length() override
@inherit
PackageItemFile¶
PackageItemFile(const PackageFileItemDescription* item, const std::filesystem::path& packageFile, AmSize headerSize)
Constructs a new PackageItemFile
instance.
- Parameter
item
- The description of the package item.
- Parameter
packageFile
- The path to the package file.
- Parameter
headerSize
- The size of the package file header.
Position¶
AmSize Position() override
@inherit
Read¶
AmSize Read(AmUInt8Buffer dst, AmSize bytes) override
@inherit
Seek¶
void Seek(AmInt64 offset, eFileSeekOrigin origin) override
@inherit
Write¶
AmSize Write(AmConstUInt8Buffer src, AmSize bytes) override
@inherit
Note
Writing is disabled for packages item files.