Skip to content

Commit c669cab

Browse files
committed
Add new dimension UnitInformationStorage
1 parent 3bb29f6 commit c669cab

File tree

1 file changed

+146
-0
lines changed

1 file changed

+146
-0
lines changed

Sources/SwiftMeasurement.swift

+146
Original file line numberDiff line numberDiff line change
@@ -826,3 +826,149 @@ public extension Double {
826826
}
827827

828828
}
829+
830+
// - UnitInformationStorage: []
831+
@available(iOS 13.0, *)
832+
public extension Double {
833+
834+
var bytes: Measurement<UnitInformationStorage> {
835+
return Measurement<UnitInformationStorage>(value: self, unit: .bytes)
836+
}
837+
838+
var bits: Measurement<UnitInformationStorage> {
839+
return Measurement<UnitInformationStorage>(value: self, unit: .bits)
840+
}
841+
842+
var nibbles: Measurement<UnitInformationStorage> {
843+
return Measurement<UnitInformationStorage>(value: self, unit: .nibbles)
844+
}
845+
846+
var yottabytes: Measurement<UnitInformationStorage> {
847+
return Measurement<UnitInformationStorage>(value: self, unit: .yottabytes)
848+
}
849+
850+
var zettabytes: Measurement<UnitInformationStorage> {
851+
return Measurement<UnitInformationStorage>(value: self, unit: .zettabytes)
852+
}
853+
854+
var exabytes: Measurement<UnitInformationStorage> {
855+
return Measurement<UnitInformationStorage>(value: self, unit: .exabytes)
856+
}
857+
858+
var petabytes: Measurement<UnitInformationStorage> {
859+
return Measurement<UnitInformationStorage>(value: self, unit: .petabytes)
860+
}
861+
862+
var terabytes: Measurement<UnitInformationStorage> {
863+
return Measurement<UnitInformationStorage>(value: self, unit: .terabytes)
864+
}
865+
866+
var gigabytes: Measurement<UnitInformationStorage> {
867+
return Measurement<UnitInformationStorage>(value: self, unit: .gigabytes)
868+
}
869+
870+
var megabytes: Measurement<UnitInformationStorage> {
871+
return Measurement<UnitInformationStorage>(value: self, unit: .megabytes)
872+
}
873+
874+
var kilobytes: Measurement<UnitInformationStorage> {
875+
return Measurement<UnitInformationStorage>(value: self, unit: .kilobytes)
876+
}
877+
878+
var yottabits: Measurement<UnitInformationStorage> {
879+
return Measurement<UnitInformationStorage>(value: self, unit: .yottabits)
880+
}
881+
882+
var zettabits: Measurement<UnitInformationStorage> {
883+
return Measurement<UnitInformationStorage>(value: self, unit: .zettabits)
884+
}
885+
886+
var exabits: Measurement<UnitInformationStorage> {
887+
return Measurement<UnitInformationStorage>(value: self, unit: .exabits)
888+
}
889+
890+
var petabits: Measurement<UnitInformationStorage> {
891+
return Measurement<UnitInformationStorage>(value: self, unit: .petabits)
892+
}
893+
894+
var terabits: Measurement<UnitInformationStorage> {
895+
return Measurement<UnitInformationStorage>(value: self, unit: .terabits)
896+
}
897+
898+
var gigabits: Measurement<UnitInformationStorage> {
899+
return Measurement<UnitInformationStorage>(value: self, unit: .gigabits)
900+
}
901+
902+
var megabits: Measurement<UnitInformationStorage> {
903+
return Measurement<UnitInformationStorage>(value: self, unit: .megabits)
904+
}
905+
906+
var kilobits: Measurement<UnitInformationStorage> {
907+
return Measurement<UnitInformationStorage>(value: self, unit: .kilobits)
908+
}
909+
910+
var yobibytes: Measurement<UnitInformationStorage> {
911+
return Measurement<UnitInformationStorage>(value: self, unit: .yobibytes)
912+
}
913+
914+
var zebibytes: Measurement<UnitInformationStorage> {
915+
return Measurement<UnitInformationStorage>(value: self, unit: .zebibytes)
916+
}
917+
918+
var exbibytes: Measurement<UnitInformationStorage> {
919+
return Measurement<UnitInformationStorage>(value: self, unit: .exbibytes)
920+
}
921+
922+
var pebibytes: Measurement<UnitInformationStorage> {
923+
return Measurement<UnitInformationStorage>(value: self, unit: .pebibytes)
924+
}
925+
926+
var tebibytes: Measurement<UnitInformationStorage> {
927+
return Measurement<UnitInformationStorage>(value: self, unit: .tebibytes)
928+
}
929+
930+
var gibibytes: Measurement<UnitInformationStorage> {
931+
return Measurement<UnitInformationStorage>(value: self, unit: .gibibytes)
932+
}
933+
934+
var mebibytes: Measurement<UnitInformationStorage> {
935+
return Measurement<UnitInformationStorage>(value: self, unit: .mebibytes)
936+
}
937+
938+
var kibibytes: Measurement<UnitInformationStorage> {
939+
return Measurement<UnitInformationStorage>(value: self, unit: .kibibytes)
940+
}
941+
942+
var yobibits: Measurement<UnitInformationStorage> {
943+
return Measurement<UnitInformationStorage>(value: self, unit: .yobibits)
944+
}
945+
946+
var zebibits: Measurement<UnitInformationStorage> {
947+
return Measurement<UnitInformationStorage>(value: self, unit: .zebibits)
948+
}
949+
950+
var exbibits: Measurement<UnitInformationStorage> {
951+
return Measurement<UnitInformationStorage>(value: self, unit: .exbibits)
952+
}
953+
954+
var pebibits: Measurement<UnitInformationStorage> {
955+
return Measurement<UnitInformationStorage>(value: self, unit: .pebibits)
956+
}
957+
958+
var tebibits: Measurement<UnitInformationStorage> {
959+
return Measurement<UnitInformationStorage>(value: self, unit: .tebibits)
960+
}
961+
962+
var gibibits: Measurement<UnitInformationStorage> {
963+
return Measurement<UnitInformationStorage>(value: self, unit: .gibibits)
964+
}
965+
966+
var mebibits: Measurement<UnitInformationStorage> {
967+
return Measurement<UnitInformationStorage>(value: self, unit: .mebibits)
968+
}
969+
970+
var kibibits: Measurement<UnitInformationStorage> {
971+
return Measurement<UnitInformationStorage>(value: self, unit: .kibibits)
972+
}
973+
974+
}

0 commit comments

Comments
 (0)