This header file is part of sub-namespace alib::lang::format of module ALib BaseCamp of the ALib C++ Library.
© 2013-2024 A-Worx GmbH, Germany. Published under Boost Software License.
Definition in file bytesize.hpp.
#include "alib/lang/format/fmtexceptions.hpp"
#include "alib/enums/arithmetical.hpp"
#include "alib/enums/bitwise.hpp"
#include "alib/enums/iterable.hpp"
#include "alib/enums/records.hpp"
#include "alib/enums/serialization.hpp"
Go to the source code of this file.
Classes | |
struct | ByteSizeIEC |
struct | ByteSizeSI |
struct | T_Append< lang::format::ByteSizeIEC, character, lang::HeapAllocator > |
struct | T_Append< lang::format::ByteSizeSI, character, lang::HeapAllocator > |
Namespaces | |
namespace | alib |
namespace | alib::lang |
namespace | alib::lang::format |
namespace | alib::strings |
namespace | alib::strings::APPENDABLES |
Typedefs | |
using | ByteSize = lang::format::ByteSizeIEC |
Type alias in namespace alib. | |
using | ByteSizeIEC = lang::format::ByteSizeIEC |
Type alias in namespace alib. | |
using | ByteSizeSI = lang::format::ByteSizeSI |
Type alias in namespace alib. | |
using | ByteSizeUnits = lang::format::ByteSizeUnits |
Type alias in namespace alib. | |
Enumerations | |
enum | ByteSizeUnits : uint8_t { IEC = 0 , B = 0 , KiB = 1 , MiB = 2 , GiB = 3 , TiB = 4 , PiB = 5 , EiB = 6 , ZiB = 7 , YiB = 8 , RiB = 9 , QiB = 10 , IEC_END = 11 , SI = 11 , B_SI = 11 , kB = 12 , MB = 13 , GB = 14 , TB = 15 , PB = 16 , EB = 17 , ZB = 18 , YB = 19 , RB = 20 , QB = 21 , SI_END = 22 } |
Functions | |
ALIB_API void | FormatByteSize (AString &target, uinteger byteSize, uint16_t magnitudeThreshold, char unitSeparator, ByteSizeUnits unit, NumberFormat &nf) |