PathView implementation. More...
Namespaces | |
| namespace | parser |
Typedefs | |
| using | DecompressionFunc = AZStd::function< bool(const CompressionInfo &info, const void *compressed, size_t compressedSize, void *uncompressed, size_t uncompressedBufferSize)> |
| using | CompressionBus = AZ::EBus< Compression > |
| using | HandleType = AZ::u32 |
| using | SizeType = AZ::u64 |
| using | OffsetType = AZ::s64 |
| using | FileRequestPtr = AZStd::intrusive_ptr< ExternalFileRequest > |
| using | StreamerProfiler = AZ::Interface< IStreamerProfiler > |
| using | FixedMaxPathString = AZStd::basic_fixed_string< char, MaxPathLength, AZStd::char_traits< char > > |
| Path aliases. | |
| using | Path = BasicPath< AZStd::basic_string< char, AZStd::char_traits< char >, AZStd::allocator > > |
| using | FixedMaxPath = BasicPath< FixedMaxPathString > |
| template<size_t WindowSize> | |
| using | TimedAverageWindow = AverageWindow< Statistic::TimeValue, Statistic::TimeValue, WindowSize > |
| using | NiceFileIOBaseMock = ::testing::NiceMock< MockFileIOBase > |
| using | DriveList = AZStd::vector< DriveInformation > |
Enumerations | |
| enum class | ConflictResolution : uint8_t { PreferFile , PreferArchive , UseArchiveOnly } |
| enum class | SeekType : AZ::u32 { SeekFromStart , SeekFromCurrent , SeekFromEnd } |
| enum class | ResultCode : AZ::u32 { Success = 0 , Error = 1 , Error_HandleInvalid = 2 } |
| enum class | OpenMode : AZ::u32 { Invalid = 0 , ModeRead = (1 << 0) , ModeWrite = (1 << 1) , ModeAppend = (1 << 2) , ModeBinary = (1 << 3) , ModeText = (1 << 4) , ModeUpdate = (1 << 5) , ModeCreatePath = (1 << 6) } |
Variables | |
| static const HandleType | InvalidHandle = 0 |
| constexpr size_t | MaxPathLength = 1024 |
| Path Constants. | |
| constexpr char | PosixPathSeparator = '/' |
| constexpr char | WindowsPathSeparator = '\\' |
| static constexpr size_t | s_fileNotFound = std::numeric_limits<size_t>::max() |
| Constant used to denote "file not found" in StreamStackEntry processing. | |
| static const size_t | s_statisticsWindowSize = 128 |
PathView implementation.
AZ::Path iterator implementation.
AZ::PathView functions which returns FixedMaxPath.
| using AZ::IO::Path = typedef BasicPath<AZStd::basic_string<char, AZStd::char_traits<char>, AZStd::allocator> > |
Only the following path types are supported The BasicPath template above is shared only amoung the following instantiations
|
strong |
| AZCORE_API bool AZ::IO::CollectIoHardwareInformation | ( | HardwareInformation & | info, |
| bool | includeAllHardware, | ||
| bool | reportHardware | ||
| ) |
Collects hardware information for all hardware that can be used for file IO.
| info | The retrieved hardware information. |
| includeAllHardware | Includes all available hardware that can be used by AZ::IO::Streamer. If set to false only hardware is listed that is known to be used. This may be more performant, but can result is file requests failing if they use an previously unknown path. |
| reportHardware | If true, hardware information will be printed to the log if available. |
| AZCORE_API AZ::u64 AZ::IO::FileTimeToMSecsSincePosixEpoch | ( | AZ::u64 | fileTime | ) |
Converts the operating-specific values returned by AZ::IO::FileIO API to independent units representing the milliseconds since 1/1/1970 0:00 UTC
Hashes a value in a manner that if two paths are equal, then their hash values are also equal For example : path "a//b" equals "a/b", the hash value of "a//b" would also equal the hash value of "a/b"
| AZCORE_API bool AZ::IO::NameMatchesFilter | ( | AZStd::string_view | name, |
| AZStd::string_view | filter | ||
| ) |
return true if name of file matches glob filter. glob filters are MS-DOS (or windows) findNextFile style filters like "*.bat" or "blah??.pak" or "test*.exe" and such.
| AZCORE_API bool AZ::IO::RetryOpenStream | ( | FileIOStream & | stream, |
| int | numRetries = 10, |
||
| int | delayBetweenRetry = 250 |
||
| ) |
ReOpen a stream until it opens - this can help avoid transient problems where the OS has a brief lock on a file stream. returns false if the stream is not open at the end of the retries.
|
static |
The number of entries in the statistics window. Larger number will measure over a longer time and will be more accurate, but also less responsive to sudden changes.