mate_common.models.bytes module

mate_common.models.bytes.bytes_to_gb(b: Bytes) → Gibibytes
Parameters

b (Bytes) –

Return type

Gibibytes

mate_common.models.bytes.bytes_to_kb(b: Bytes) → Kibibytes
Parameters

b (Bytes) –

Return type

Kibibytes

mate_common.models.bytes.bytes_to_mb(b: Bytes) → Mebibytes
Parameters

b (Bytes) –

Return type

Mebibytes

mate_common.models.bytes.gb_to_bytes(gb: Gibibytes) → Bytes
Parameters

gb (Gibibytes) –

Return type

Bytes

mate_common.models.bytes.gb_to_mb(gb: Gibibytes) → Mebibytes
Parameters

gb (Gibibytes) –

Return type

Mebibytes

mate_common.models.bytes.int_to_bytes(n: int) → Bytes
Parameters

n (int) –

Return type

Bytes

mate_common.models.bytes.kb_to_bytes(kb: Kibibytes) → Bytes
Parameters

kb (Kibibytes) –

Return type

Bytes

mate_common.models.bytes.mb_to_bytes(mb: Mebibytes) → Bytes
Parameters

mb (Mebibytes) –

Return type

Bytes