/dports/sysutils/vector/vector-0.10.0/cargo-crates/bytesize-1.0.1/src/ |
H A D | lib.rs | 111 impl ByteSize { implementation 231 fn add(self, rhs: ByteSize) -> ByteSize { 247 fn mul(self, rhs: ByteSize) -> ByteSize { 259 impl Add<ByteSize> for ByteSize { implementation 263 fn add(self, rhs: ByteSize) -> ByteSize { in add() argument 299 assert!(ByteSize::mb(1) == ByteSize::kb(1000)); in test_comparison() 300 assert!(ByteSize::mib(1) == ByteSize::kib(1024)); in test_comparison() 301 assert!(ByteSize::mb(1) != ByteSize::kib(1024)); in test_comparison() 302 assert!(ByteSize::mb(1) < ByteSize::kib(1024)); in test_comparison() 303 assert!(ByteSize::b(0) < ByteSize::tib(1)); in test_comparison() [all …]
|
/dports/devel/gitui/gitui-0.10.1/cargo-crates/bytesize-1.0.1/src/ |
H A D | lib.rs | 111 impl ByteSize { impl 231 fn add(self, rhs: ByteSize) -> ByteSize { 247 fn mul(self, rhs: ByteSize) -> ByteSize { 259 impl Add<ByteSize> for ByteSize { implementation 263 fn add(self, rhs: ByteSize) -> ByteSize { in add() argument 299 assert!(ByteSize::mb(1) == ByteSize::kb(1000)); in test_comparison() 300 assert!(ByteSize::mib(1) == ByteSize::kib(1024)); in test_comparison() 301 assert!(ByteSize::mb(1) != ByteSize::kib(1024)); in test_comparison() 302 assert!(ByteSize::mb(1) < ByteSize::kib(1024)); in test_comparison() 303 assert!(ByteSize::b(0) < ByteSize::tib(1)); in test_comparison() [all …]
|
/dports/devel/cargo-generate/cargo-generate-0.9.0/cargo-crates/bytesize-1.0.1/src/ |
H A D | lib.rs | 111 impl ByteSize { impl 231 fn add(self, rhs: ByteSize) -> ByteSize { 247 fn mul(self, rhs: ByteSize) -> ByteSize { 259 impl Add<ByteSize> for ByteSize { implementation 263 fn add(self, rhs: ByteSize) -> ByteSize { in add() argument 299 assert!(ByteSize::mb(1) == ByteSize::kb(1000)); in test_comparison() 300 assert!(ByteSize::mib(1) == ByteSize::kib(1024)); in test_comparison() 301 assert!(ByteSize::mb(1) != ByteSize::kib(1024)); in test_comparison() 302 assert!(ByteSize::mb(1) < ByteSize::kib(1024)); in test_comparison() 303 assert!(ByteSize::b(0) < ByteSize::tib(1)); in test_comparison() [all …]
|
/dports/lang/rust/rustc-1.58.1-src/vendor/bytesize/src/ |
H A D | lib.rs | 111 impl ByteSize { implementation 231 fn add(self, rhs: ByteSize) -> ByteSize { 247 fn mul(self, rhs: ByteSize) -> ByteSize { 259 impl Add<ByteSize> for ByteSize { implementation 263 fn add(self, rhs: ByteSize) -> ByteSize { in add() argument 299 assert!(ByteSize::mb(1) == ByteSize::kb(1000)); in test_comparison() 300 assert!(ByteSize::mib(1) == ByteSize::kib(1024)); in test_comparison() 301 assert!(ByteSize::mb(1) != ByteSize::kib(1024)); in test_comparison() 302 assert!(ByteSize::mb(1) < ByteSize::kib(1024)); in test_comparison() 303 assert!(ByteSize::b(0) < ByteSize::tib(1)); in test_comparison() [all …]
|
/dports/devel/cargo-c/cargo-c-0.9.6+cargo-0.58/cargo-crates/bytesize-1.1.0/src/ |
H A D | lib.rs | 113 impl ByteSize { implementation 225 fn add(self, rhs: ByteSize) -> ByteSize { 233 fn mul(self, rhs: ByteSize) -> ByteSize { 245 impl Add<ByteSize> for ByteSize { implementation 249 fn add(self, rhs: ByteSize) -> ByteSize { in add() argument 254 impl AddAssign<ByteSize> for ByteSize { implementation 337 assert!(ByteSize::mb(1) == ByteSize::kb(1000)); in test_comparison() 339 assert!(ByteSize::mb(1) != ByteSize::kib(1024)); in test_comparison() 340 assert!(ByteSize::mb(1) < ByteSize::kib(1024)); in test_comparison() 341 assert!(ByteSize::b(0) < ByteSize::tib(1)); in test_comparison() [all …]
|
/dports/www/miniserve/miniserve-0.18.0/cargo-crates/bytesize-1.1.0/src/ |
H A D | lib.rs | 113 impl ByteSize { impl 225 fn add(self, rhs: ByteSize) -> ByteSize { 233 fn mul(self, rhs: ByteSize) -> ByteSize { 245 impl Add<ByteSize> for ByteSize { implementation 249 fn add(self, rhs: ByteSize) -> ByteSize { in add() argument 254 impl AddAssign<ByteSize> for ByteSize { implementation 337 assert!(ByteSize::mb(1) == ByteSize::kb(1000)); in test_comparison() 339 assert!(ByteSize::mb(1) != ByteSize::kib(1024)); in test_comparison() 340 assert!(ByteSize::mb(1) < ByteSize::kib(1024)); in test_comparison() 341 assert!(ByteSize::b(0) < ByteSize::tib(1)); in test_comparison() [all …]
|
/dports/devel/py-maturin/maturin-0.11.3/cargo-crates/bytesize-1.1.0/src/ |
H A D | lib.rs | 113 impl ByteSize { impl 225 fn add(self, rhs: ByteSize) -> ByteSize { 233 fn mul(self, rhs: ByteSize) -> ByteSize { 245 impl Add<ByteSize> for ByteSize { implementation 249 fn add(self, rhs: ByteSize) -> ByteSize { in add() argument 254 impl AddAssign<ByteSize> for ByteSize { implementation 337 assert!(ByteSize::mb(1) == ByteSize::kb(1000)); in test_comparison() 339 assert!(ByteSize::mb(1) != ByteSize::kib(1024)); in test_comparison() 340 assert!(ByteSize::mb(1) < ByteSize::kib(1024)); in test_comparison() 341 assert!(ByteSize::b(0) < ByteSize::tib(1)); in test_comparison() [all …]
|
/dports/java/openjdk11/jdk11u-jdk-11.0.13-8-1/src/hotspot/share/utilities/ |
H A D | sizes.hpp | 62 class ByteSize { class 77 …friend ByteSize operator + (ByteSize x, ByteSize y) { return ByteSize(in_bytes(x) + in_bytes(y)); } in operator +() 78 …friend ByteSize operator - (ByteSize x, ByteSize y) { return ByteSize(in_bytes(x) - in_bytes(y)); } in operator -() 79 …friend ByteSize operator * (ByteSize x, int y) { return ByteSize(in_bytes(x) * y ); } in operator *() 82 friend bool operator == (ByteSize x, ByteSize y) { return in_bytes(x) == in_bytes(y); } in operator ==() 83 friend bool operator != (ByteSize x, ByteSize y) { return in_bytes(x) != in_bytes(y); } in operator !=() 84 friend bool operator < (ByteSize x, ByteSize y) { return in_bytes(x) < in_bytes(y); } in operator <() 85 friend bool operator <= (ByteSize x, ByteSize y) { return in_bytes(x) <= in_bytes(y); } in operator <=() 86 friend bool operator > (ByteSize x, ByteSize y) { return in_bytes(x) > in_bytes(y); } in operator >() 90 inline ByteSize in_ByteSize(int size) { return ByteSize(size); } in in_ByteSize() [all …]
|
/dports/java/openjdk13/jdk13u-jdk-13.0.10-1-1/src/hotspot/share/utilities/ |
H A D | sizes.hpp | 62 class ByteSize { class 77 …friend ByteSize operator + (ByteSize x, ByteSize y) { return ByteSize(in_bytes(x) + in_bytes(y)); } in operator +() 78 …friend ByteSize operator - (ByteSize x, ByteSize y) { return ByteSize(in_bytes(x) - in_bytes(y)); } in operator -() 79 …friend ByteSize operator * (ByteSize x, int y) { return ByteSize(in_bytes(x) * y ); } in operator *() 82 friend bool operator == (ByteSize x, ByteSize y) { return in_bytes(x) == in_bytes(y); } in operator ==() 83 friend bool operator != (ByteSize x, ByteSize y) { return in_bytes(x) != in_bytes(y); } in operator !=() 84 friend bool operator < (ByteSize x, ByteSize y) { return in_bytes(x) < in_bytes(y); } in operator <() 85 friend bool operator <= (ByteSize x, ByteSize y) { return in_bytes(x) <= in_bytes(y); } in operator <=() 86 friend bool operator > (ByteSize x, ByteSize y) { return in_bytes(x) > in_bytes(y); } in operator >() 90 inline ByteSize in_ByteSize(int size) { return ByteSize(size); } in in_ByteSize() [all …]
|
/dports/java/openjdk12/openjdk-jdk12u-jdk-12.0.2-10-4/src/hotspot/share/utilities/ |
H A D | sizes.hpp | 62 class ByteSize { class 77 …friend ByteSize operator + (ByteSize x, ByteSize y) { return ByteSize(in_bytes(x) + in_bytes(y)); } in operator +() 78 …friend ByteSize operator - (ByteSize x, ByteSize y) { return ByteSize(in_bytes(x) - in_bytes(y)); } in operator -() 79 …friend ByteSize operator * (ByteSize x, int y) { return ByteSize(in_bytes(x) * y ); } in operator *() 82 friend bool operator == (ByteSize x, ByteSize y) { return in_bytes(x) == in_bytes(y); } in operator ==() 83 friend bool operator != (ByteSize x, ByteSize y) { return in_bytes(x) != in_bytes(y); } in operator !=() 84 friend bool operator < (ByteSize x, ByteSize y) { return in_bytes(x) < in_bytes(y); } in operator <() 85 friend bool operator <= (ByteSize x, ByteSize y) { return in_bytes(x) <= in_bytes(y); } in operator <=() 86 friend bool operator > (ByteSize x, ByteSize y) { return in_bytes(x) > in_bytes(y); } in operator >() 90 inline ByteSize in_ByteSize(int size) { return ByteSize(size); } in in_ByteSize() [all …]
|
/dports/java/openjdk11-jre/jdk11u-jdk-11.0.13-8-1/src/hotspot/share/utilities/ |
H A D | sizes.hpp | 62 class ByteSize { class 77 …friend ByteSize operator + (ByteSize x, ByteSize y) { return ByteSize(in_bytes(x) + in_bytes(y)); } in operator +() 78 …friend ByteSize operator - (ByteSize x, ByteSize y) { return ByteSize(in_bytes(x) - in_bytes(y)); } in operator -() 79 …friend ByteSize operator * (ByteSize x, int y) { return ByteSize(in_bytes(x) * y ); } in operator *() 82 friend bool operator == (ByteSize x, ByteSize y) { return in_bytes(x) == in_bytes(y); } in operator ==() 83 friend bool operator != (ByteSize x, ByteSize y) { return in_bytes(x) != in_bytes(y); } in operator !=() 84 friend bool operator < (ByteSize x, ByteSize y) { return in_bytes(x) < in_bytes(y); } in operator <() 85 friend bool operator <= (ByteSize x, ByteSize y) { return in_bytes(x) <= in_bytes(y); } in operator <=() 86 friend bool operator > (ByteSize x, ByteSize y) { return in_bytes(x) > in_bytes(y); } in operator >() 90 inline ByteSize in_ByteSize(int size) { return ByteSize(size); } in in_ByteSize() [all …]
|
/dports/java/openjdk15/jdk15u-jdk-15.0.6-1-1/src/hotspot/share/utilities/ |
H A D | sizes.hpp | 62 class ByteSize { class 77 …friend ByteSize operator + (ByteSize x, ByteSize y) { return ByteSize(in_bytes(x) + in_bytes(y)); } in operator +() 78 …friend ByteSize operator - (ByteSize x, ByteSize y) { return ByteSize(in_bytes(x) - in_bytes(y)); } in operator -() 79 …friend ByteSize operator * (ByteSize x, int y) { return ByteSize(in_bytes(x) * y ); } in operator *() 82 friend bool operator == (ByteSize x, ByteSize y) { return in_bytes(x) == in_bytes(y); } in operator ==() 83 friend bool operator != (ByteSize x, ByteSize y) { return in_bytes(x) != in_bytes(y); } in operator !=() 84 friend bool operator < (ByteSize x, ByteSize y) { return in_bytes(x) < in_bytes(y); } in operator <() 85 friend bool operator <= (ByteSize x, ByteSize y) { return in_bytes(x) <= in_bytes(y); } in operator <=() 86 friend bool operator > (ByteSize x, ByteSize y) { return in_bytes(x) > in_bytes(y); } in operator >() 90 inline ByteSize in_ByteSize(int size) { return ByteSize(size); } in in_ByteSize() [all …]
|
/dports/java/openjdk14/jdk14u-jdk-14.0.2-12-1/src/hotspot/share/utilities/ |
H A D | sizes.hpp | 62 class ByteSize { class 77 …friend ByteSize operator + (ByteSize x, ByteSize y) { return ByteSize(in_bytes(x) + in_bytes(y)); } in operator +() 78 …friend ByteSize operator - (ByteSize x, ByteSize y) { return ByteSize(in_bytes(x) - in_bytes(y)); } in operator -() 79 …friend ByteSize operator * (ByteSize x, int y) { return ByteSize(in_bytes(x) * y ); } in operator *() 82 friend bool operator == (ByteSize x, ByteSize y) { return in_bytes(x) == in_bytes(y); } in operator ==() 83 friend bool operator != (ByteSize x, ByteSize y) { return in_bytes(x) != in_bytes(y); } in operator !=() 84 friend bool operator < (ByteSize x, ByteSize y) { return in_bytes(x) < in_bytes(y); } in operator <() 85 friend bool operator <= (ByteSize x, ByteSize y) { return in_bytes(x) <= in_bytes(y); } in operator <=() 86 friend bool operator > (ByteSize x, ByteSize y) { return in_bytes(x) > in_bytes(y); } in operator >() 90 inline ByteSize in_ByteSize(int size) { return ByteSize(size); } in in_ByteSize() [all …]
|
/dports/java/openjdk8/jdk8u-jdk8u312-b07.1/hotspot/src/share/vm/utilities/ |
H A D | sizes.hpp | 78 …friend ByteSize operator + (ByteSize x, ByteSize y) { return ByteSize(in_bytes(x) + in_bytes(y)); } in operator +() 79 …friend ByteSize operator - (ByteSize x, ByteSize y) { return ByteSize(in_bytes(x) - in_bytes(y)); } in operator -() 80 …friend ByteSize operator * (ByteSize x, int y) { return ByteSize(in_bytes(x) * y ); } in operator *() 83 friend bool operator == (ByteSize x, ByteSize y) { return in_bytes(x) == in_bytes(y); } in operator ==() 84 friend bool operator != (ByteSize x, ByteSize y) { return in_bytes(x) != in_bytes(y); } in operator !=() 85 friend bool operator < (ByteSize x, ByteSize y) { return in_bytes(x) < in_bytes(y); } in operator <() 86 friend bool operator <= (ByteSize x, ByteSize y) { return in_bytes(x) <= in_bytes(y); } in operator <=() 87 friend bool operator > (ByteSize x, ByteSize y) { return in_bytes(x) > in_bytes(y); } in operator >() 88 friend bool operator >= (ByteSize x, ByteSize y) { return in_bytes(x) >= in_bytes(y); } in operator >=() 91 inline ByteSize in_ByteSize(int size) { return ByteSize(size); } in in_ByteSize() [all …]
|
/dports/java/openjdk8-jre/jdk8u-jdk8u312-b07.1/hotspot/src/share/vm/utilities/ |
H A D | sizes.hpp | 78 …friend ByteSize operator + (ByteSize x, ByteSize y) { return ByteSize(in_bytes(x) + in_bytes(y)); } in operator +() 79 …friend ByteSize operator - (ByteSize x, ByteSize y) { return ByteSize(in_bytes(x) - in_bytes(y)); } in operator -() 80 …friend ByteSize operator * (ByteSize x, int y) { return ByteSize(in_bytes(x) * y ); } in operator *() 83 friend bool operator == (ByteSize x, ByteSize y) { return in_bytes(x) == in_bytes(y); } in operator ==() 84 friend bool operator != (ByteSize x, ByteSize y) { return in_bytes(x) != in_bytes(y); } in operator !=() 85 friend bool operator < (ByteSize x, ByteSize y) { return in_bytes(x) < in_bytes(y); } in operator <() 86 friend bool operator <= (ByteSize x, ByteSize y) { return in_bytes(x) <= in_bytes(y); } in operator <=() 87 friend bool operator > (ByteSize x, ByteSize y) { return in_bytes(x) > in_bytes(y); } in operator >() 88 friend bool operator >= (ByteSize x, ByteSize y) { return in_bytes(x) >= in_bytes(y); } in operator >=() 91 inline ByteSize in_ByteSize(int size) { return ByteSize(size); } in in_ByteSize() [all …]
|
/dports/sysutils/vector/vector-0.10.0/cargo-crates/bytesize-1.0.1/ |
H A D | README.md | 1 ## ByteSize section 28 fn assert_display(expected: &str, b: ByteSize) { 34 assert_display("215 B", ByteSize(215)); 35 assert_display("215 B", ByteSize::b(215)); 36 assert_display("1.0 KB", ByteSize::kb(1)); 37 assert_display("301.0 KB", ByteSize::kb(301)); 38 assert_display("419.0 MB", ByteSize::mb(419)); 83 use bytesize::ByteSize; 86 let x = ByteSize::mb(1); 87 let y = ByteSize::kb(100); [all …]
|
/dports/devel/gitui/gitui-0.10.1/cargo-crates/bytesize-1.0.1/ |
H A D | README.md | 1 ## ByteSize section 28 fn assert_display(expected: &str, b: ByteSize) { 34 assert_display("215 B", ByteSize(215)); 35 assert_display("215 B", ByteSize::b(215)); 36 assert_display("1.0 KB", ByteSize::kb(1)); 37 assert_display("301.0 KB", ByteSize::kb(301)); 38 assert_display("419.0 MB", ByteSize::mb(419)); 83 use bytesize::ByteSize; 86 let x = ByteSize::mb(1); 87 let y = ByteSize::kb(100); [all …]
|
/dports/devel/cargo-generate/cargo-generate-0.9.0/cargo-crates/bytesize-1.0.1/ |
H A D | README.md | 1 ## ByteSize section 28 fn assert_display(expected: &str, b: ByteSize) { 34 assert_display("215 B", ByteSize(215)); 35 assert_display("215 B", ByteSize::b(215)); 36 assert_display("1.0 KB", ByteSize::kb(1)); 37 assert_display("301.0 KB", ByteSize::kb(301)); 38 assert_display("419.0 MB", ByteSize::mb(419)); 83 use bytesize::ByteSize; 86 let x = ByteSize::mb(1); 87 let y = ByteSize::kb(100); [all …]
|
/dports/lang/rust/rustc-1.58.1-src/vendor/bytesize/ |
H A D | README.md | 1 ## ByteSize section 28 fn assert_display(expected: &str, b: ByteSize) { 34 assert_display("215 B", ByteSize(215)); 35 assert_display("215 B", ByteSize::b(215)); 36 assert_display("1.0 KB", ByteSize::kb(1)); 37 assert_display("301.0 KB", ByteSize::kb(301)); 38 assert_display("419.0 MB", ByteSize::mb(419)); 83 use bytesize::ByteSize; 86 let x = ByteSize::mb(1); 87 let y = ByteSize::kb(100); [all …]
|
/dports/devel/cargo-c/cargo-c-0.9.6+cargo-0.58/cargo-crates/bytesize-1.1.0/ |
H A D | README.md | 1 ## ByteSize section 11 * Artimetic operations for `ByteSize` 34 fn assert_display(expected: &str, b: ByteSize) { 40 assert_display("215 B", ByteSize(215)); 41 assert_display("215 B", ByteSize::b(215)); 42 assert_display("1.0 KB", ByteSize::kb(1)); 88 s.parse::<ByteSize>().unwrap().0 115 use bytesize::ByteSize; 118 let x = ByteSize::mb(1); 119 let y = ByteSize::kb(100); [all …]
|
/dports/www/miniserve/miniserve-0.18.0/cargo-crates/bytesize-1.1.0/ |
H A D | README.md | 1 ## ByteSize section 11 * Artimetic operations for `ByteSize` 34 fn assert_display(expected: &str, b: ByteSize) { 40 assert_display("215 B", ByteSize(215)); 41 assert_display("215 B", ByteSize::b(215)); 42 assert_display("1.0 KB", ByteSize::kb(1)); 88 s.parse::<ByteSize>().unwrap().0 115 use bytesize::ByteSize; 118 let x = ByteSize::mb(1); 119 let y = ByteSize::kb(100); [all …]
|
/dports/devel/py-maturin/maturin-0.11.3/cargo-crates/bytesize-1.1.0/ |
H A D | README.md | 1 ## ByteSize section 11 * Artimetic operations for `ByteSize` 34 fn assert_display(expected: &str, b: ByteSize) { 40 assert_display("215 B", ByteSize(215)); 41 assert_display("215 B", ByteSize::b(215)); 42 assert_display("1.0 KB", ByteSize::kb(1)); 88 s.parse::<ByteSize>().unwrap().0 115 use bytesize::ByteSize; 118 let x = ByteSize::mb(1); 119 let y = ByteSize::kb(100); [all …]
|
/dports/security/vault/vault-1.8.2/vendor/github.com/vmware/govmomi/units/ |
H A D | size_test.go | 26 b := ByteSize(1024 * 1024) 34 b := ByteSize(10 * 1024 * 1024) 49 assertEquals(t, "1B", ByteSize(1)) 50 assertEquals(t, "10B", ByteSize(10)) 51 assertEquals(t, "100B", ByteSize(100)) 52 assertEquals(t, "1000B", ByteSize(1000)) 53 assertEquals(t, "1.0KB", ByteSize(1024)) 54 assertEquals(t, "1.0MB", ByteSize(1024*1024)) 55 assertEquals(t, "1.0MB", ByteSize(1048576)) 69 Out ByteSize [all …]
|
/dports/net-mgmt/bosun/bosun-0.9.0-preview/vendor/github.com/vmware/govmomi/units/ |
H A D | size_test.go | 26 b := ByteSize(1024 * 1024) 34 b := ByteSize(10 * 1024 * 1024) 49 assertEquals(t, "1B", ByteSize(1)) 50 assertEquals(t, "10B", ByteSize(10)) 51 assertEquals(t, "100B", ByteSize(100)) 52 assertEquals(t, "1000B", ByteSize(1000)) 53 assertEquals(t, "1.0KB", ByteSize(1024)) 54 assertEquals(t, "1.0MB", ByteSize(1024*1024)) 55 assertEquals(t, "1.0MB", ByteSize(1048576)) 69 Out ByteSize [all …]
|
/dports/net-mgmt/promscale/promscale-0.6.2/vendor/github.com/inhies/go-bytesize/ |
H A D | bytesize.go | 25 type ByteSize uint64 type 29 B ByteSize = 1 30 KB ByteSize = 1 << (10 * iota) 39 var longUnitMap = map[ByteSize]string{ 50 var shortUnitMap = map[ByteSize]string{ 61 var unitMap = map[string]ByteSize{ 159 func (b *ByteSize) Get() interface{} { return ByteSize(*b) } 162 func New(s float64) ByteSize { 163 return ByteSize(s) 173 func (b ByteSize) String() string { [all …]
|