gtbox_unit_bytes

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2023 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GTUnitBytes

type GTUnitBytes struct {
	BytesValue *big.Float // 字节值
	Unit       UnitBytes  // 单位
}

func (*GTUnitBytes) Covert2Bit

func (aBytes *GTUnitBytes) Covert2Bit() *gtbox_unit_bit.GTUnitBit

Covert2Bit 以2进制计算方式 将 Byte (字节) 换算成 Bit(比特)

type UnitBytes

type UnitBytes int

UnitBytes Bytes 字节 显示单位 Model

const (
	UnitBytesByte       UnitBytes = iota // Byte 字节
	UnitBytesKiloBytes                   // KB or KBytes 千字节
	UnitBytesMegaBytes                   // MB or MBytes 兆字节
	UnitBytesGigaBytes                   // GB or GBytes 吉字节
	UnitBytesTeraBytes                   // TB or TBytes 太字节
	UnitBytesPetaBytes                   // PB or PBytes 拍字节
	UnitBytesExaBytes                    // EB or EBytes 艾字节
	UnitBytesZettaBytes                  // ZB or ZBytes 泽字节
	UnitBytesYottaBytes                  // YB or YBytes 尧字
)

func (UnitBytes) String

func (aBytes UnitBytes) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL