fields

package
v0.0.0-...-425d0f2 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 12 Imported by: 100

Documentation

Index

Constants

View Source
const (
	HashSize             = 32
	HashHalfCheckerSize  = 16
	HashNonceCheckerSize = 8
)
View Source
const (
	AddressSize = 21
)
View Source
const (
	BlockHeightSize uint32 = 5
)
View Source
const (
	DiamondNameSize = 6
)
View Source
const (
	SignSize uint32 = 33 + 64
)

Variables

View Source
var EmptyZeroBytes32 = bytes.Repeat([]byte{0}, 32)
View Source
var EmptyZeroBytes512 = bytes.Repeat([]byte{0}, 512)

Functions

func AmountToZeroFinString

func AmountToZeroFinString() string

func CleanAddressListByCharacterSort

func CleanAddressListByCharacterSort(addrs []Address, addradds []Address) (VarUint1, []Address)

De duplication and sorting address list

func IsDiamondValueString

func IsDiamondValueString(diamondStr string) bool

Judge whether it is a diamond

func IsValidVisibleString

func IsValidVisibleString(str string) bool

Types

type Address

type Address = Bytes21

func CheckReadableAddress

func CheckReadableAddress(readable string) (*Address, error)

check address is ok ?

func (Address) Copy

func (this Address) Copy() Address

check equal

func (Address) Equal

func (this Address) Equal(tar Address) bool

check equal

func (Address) IsValid

func (this Address) IsValid() bool

check valid

func (Address) NotEqual

func (this Address) NotEqual(tar Address) bool

func (Address) ToReadable

func (this Address) ToReadable() string

type AddressListByCharacterSort

type AddressListByCharacterSort []Address

Alphabetical sort

func (AddressListByCharacterSort) Len

func (AddressListByCharacterSort) Less

func (n AddressListByCharacterSort) Less(i, j int) bool

func (AddressListByCharacterSort) Swap

func (n AddressListByCharacterSort) Swap(i, j int)

type AddressReadable

type AddressReadable = TrimString34

type Amount

type Amount struct {
	Unit    uint8
	Dist    int8
	Numeral []byte
}

func NewAmount

func NewAmount(unit uint8, num []byte) *Amount

func NewAmountByBigInt

func NewAmountByBigInt(bignum *big.Int) (*Amount, error)

func NewAmountByBigIntWithUnit

func NewAmountByBigIntWithUnit(bignum *big.Int, unit int) (*Amount, error)

func NewAmountByUnit

func NewAmountByUnit(num int64, unit int) *Amount

func NewAmountByUnitMei

func NewAmountByUnitMei(num int64) *Amount

func NewAmountFromFinString

func NewAmountFromFinString(finstr string) (*Amount, error)

create form readble string

func NewAmountFromMeiStringUnsafe

func NewAmountFromMeiStringUnsafe(meistr string) (*Amount, error)

create form readble string

func NewAmountFromMeiUnsafe

func NewAmountFromMeiUnsafe(mei float64) (*Amount, error)

func NewAmountFromString

func NewAmountFromString(numstr string) (*Amount, error)

Create amount from string

func NewAmountNumOneByUnit

func NewAmountNumOneByUnit(unit uint8) *Amount

func NewAmountNumSmallCoin

func NewAmountNumSmallCoin(num uint8) *Amount

func NewAmountSmall

func NewAmountSmall(num uint8, unit uint8) *Amount

func NewAmountSmallValue

func NewAmountSmallValue(num uint8, unit uint8) Amount

func NewEmptyAmount

func NewEmptyAmount() *Amount

func NewEmptyAmountValue

func NewEmptyAmountValue() Amount

func ParseAmount

func ParseAmount(buf []byte, seek uint32) *Amount

func (Amount) Add

func (bill Amount) Add(amt *Amount) (*Amount, error)

add

func (*Amount) CompressForMainNumLen

func (bill *Amount) CompressForMainNumLen(numlen int, enlarge bool) (*Amount, bool, error)

Omit the decimal part in order to save it in the 4-digit space Enlargeindicates whether to enlarge (round up)

func (Amount) Copy

func (bill Amount) Copy() *Amount

func (*Amount) EllipsisDecimalFor11SizeStore

func (bill *Amount) EllipsisDecimalFor11SizeStore() (*Amount, bool, error)

Omit the decimal part in order to save it in the 11 bit space

func (Amount) Equal

func (bill Amount) Equal(amt *Amount) bool

compare

func (Amount) GetValue

func (bill Amount) GetValue() *big.Int

func (Amount) IsEmpty

func (bill Amount) IsEmpty() bool

func (Amount) IsNegative

func (bill Amount) IsNegative() bool

Judgment must be negative and cannot be zero

func (Amount) IsNotEmpty

func (bill Amount) IsNotEmpty() bool

func (Amount) IsPositive

func (bill Amount) IsPositive() bool

Judgment must be positive and cannot be zero

func (Amount) LessThan

func (bill Amount) LessThan(amt *Amount) bool

compare

func (Amount) MoreThan

func (bill Amount) MoreThan(amt *Amount) bool

compare

func (Amount) NotEqual

func (bill Amount) NotEqual(amt *Amount) bool

func (*Amount) Parse

func (bill *Amount) Parse(buf []byte, seek uint32) (uint32, error)

func (Amount) Serialize

func (bill Amount) Serialize() ([]byte, error)

func (Amount) Size

func (bill Amount) Size() uint32

func (Amount) Sub

func (bill Amount) Sub(amt *Amount) (*Amount, error)

sub

func (Amount) ToFinString

func (bill Amount) ToFinString() string

func (Amount) ToFinStringWithMark

func (bill Amount) ToFinStringWithMark(mark string) string

func (Amount) ToFinStringWithMarkBySegmentSplit

func (bill Amount) ToFinStringWithMarkBySegmentSplit(mark string) string

func (Amount) ToMei

func (bill Amount) ToMei() float64

Conversion unit: piece

func (Amount) ToMeiBigFloat

func (bill Amount) ToMeiBigFloat() *big.Float

Conversion unit: piece

func (Amount) ToMeiOrFinString

func (bill Amount) ToMeiOrFinString(usemei bool) string

func (Amount) ToMeiString

func (bill Amount) ToMeiString() string

Convert the unit to pieces, keep 8 decimal places, and round off the excess

func (Amount) ToUnitBigFloat

func (bill Amount) ToUnitBigFloat(unit int) *big.Float

func (Amount) ToUnitString

func (bill Amount) ToUnitString(unit_name string) string

Convert the unit to pieces, keep 8 decimal places, and round off the excess

func (Amount) ToZhu

func (bill Amount) ToZhu() float64

func (Amount) ToZhuBigFloat

func (bill Amount) ToZhuBigFloat() *big.Float

func (Amount) ToZhuOmit

func (bill Amount) ToZhuOmit() uint64

type BitcoinSyslendId

type BitcoinSyslendId = Bytes15

type BlockHeight

type BlockHeight = VarUint5

type BlockTxTimestamp

type BlockTxTimestamp = VarUint5

type Bool

type Bool uint8

func CreateBool

func CreateBool(v bool) Bool

func CreateBoolPtr

func CreateBoolPtr(v bool) *Bool

func (Bool) Check

func (elm Bool) Check() bool

func (Bool) Is

func (elm Bool) Is(v bool) bool

judge

func (*Bool) Parse

func (elm *Bool) Parse(buf []byte, seek uint32) (uint32, error)

func (Bool) Serialize

func (elm Bool) Serialize() ([]byte, error)

func (*Bool) Set

func (elm *Bool) Set(v bool)

set up

func (Bool) Size

func (elm Bool) Size() uint32

func (Bool) Value

func (elm Bool) Value() uint8

type Bytes10

type Bytes10 []byte

func (*Bytes10) Parse

func (elm *Bytes10) Parse(buf []byte, seek uint32) (uint32, error)

func (Bytes10) Serialize

func (elm Bytes10) Serialize() ([]byte, error)

func (Bytes10) Size

func (elm Bytes10) Size() uint32

func (Bytes10) ToHex

func (elm Bytes10) ToHex() string

type Bytes12

type Bytes12 []byte

func (*Bytes12) Parse

func (elm *Bytes12) Parse(buf []byte, seek uint32) (uint32, error)

func (Bytes12) Serialize

func (elm Bytes12) Serialize() ([]byte, error)

func (Bytes12) Size

func (elm Bytes12) Size() uint32

func (Bytes12) ToHex

func (elm Bytes12) ToHex() string

type Bytes14

type Bytes14 []byte

func (*Bytes14) Parse

func (elm *Bytes14) Parse(buf []byte, seek uint32) (uint32, error)

func (Bytes14) Serialize

func (elm Bytes14) Serialize() ([]byte, error)

func (Bytes14) Size

func (elm Bytes14) Size() uint32

func (Bytes14) ToHex

func (elm Bytes14) ToHex() string

type Bytes15

type Bytes15 []byte

func (*Bytes15) Parse

func (elm *Bytes15) Parse(buf []byte, seek uint32) (uint32, error)

func (Bytes15) Serialize

func (elm Bytes15) Serialize() ([]byte, error)

func (Bytes15) Size

func (elm Bytes15) Size() uint32

func (Bytes15) ToHex

func (elm Bytes15) ToHex() string

type Bytes16

type Bytes16 []byte

func (*Bytes16) Parse

func (elm *Bytes16) Parse(buf []byte, seek uint32) (uint32, error)

func (Bytes16) Serialize

func (elm Bytes16) Serialize() ([]byte, error)

func (Bytes16) Size

func (elm Bytes16) Size() uint32

func (Bytes16) ToHex

func (elm Bytes16) ToHex() string

type Bytes17

type Bytes17 []byte

func (*Bytes17) Parse

func (elm *Bytes17) Parse(buf []byte, seek uint32) (uint32, error)

func (Bytes17) Serialize

func (elm Bytes17) Serialize() ([]byte, error)

func (Bytes17) Size

func (elm Bytes17) Size() uint32

func (Bytes17) ToHex

func (elm Bytes17) ToHex() string

type Bytes18

type Bytes18 []byte

func (*Bytes18) Parse

func (elm *Bytes18) Parse(buf []byte, seek uint32) (uint32, error)

func (Bytes18) Serialize

func (elm Bytes18) Serialize() ([]byte, error)

func (Bytes18) Size

func (elm Bytes18) Size() uint32

func (Bytes18) ToHex

func (elm Bytes18) ToHex() string

type Bytes2

type Bytes2 []byte

func (Bytes2) Copy

func (elm Bytes2) Copy() Bytes2

Copy

func (*Bytes2) Parse

func (elm *Bytes2) Parse(buf []byte, seek uint32) (uint32, error)

func (Bytes2) Serialize

func (elm Bytes2) Serialize() ([]byte, error)

Serialize

func (Bytes2) Size

func (elm Bytes2) Size() uint32

func (Bytes2) ToHex

func (elm Bytes2) ToHex() string

type Bytes21

type Bytes21 []byte

func (*Bytes21) Parse

func (elm *Bytes21) Parse(buf []byte, seek uint32) (uint32, error)

func (Bytes21) Serialize

func (elm Bytes21) Serialize() ([]byte, error)

func (Bytes21) Size

func (elm Bytes21) Size() uint32

func (Bytes21) ToHex

func (elm Bytes21) ToHex() string

type Bytes24

type Bytes24 []byte

func (*Bytes24) Parse

func (elm *Bytes24) Parse(buf []byte, seek uint32) (uint32, error)

func (Bytes24) Serialize

func (elm Bytes24) Serialize() ([]byte, error)

func (Bytes24) Size

func (elm Bytes24) Size() uint32

func (Bytes24) ToHex

func (elm Bytes24) ToHex() string

type Bytes3

type Bytes3 []byte

func (*Bytes3) Parse

func (elm *Bytes3) Parse(buf []byte, seek uint32) (uint32, error)

func (Bytes3) Serialize

func (elm Bytes3) Serialize() ([]byte, error)

func (Bytes3) Size

func (elm Bytes3) Size() uint32

func (Bytes3) ToHex

func (elm Bytes3) ToHex() string

type Bytes32

type Bytes32 []byte

func (*Bytes32) Parse

func (elm *Bytes32) Parse(buf []byte, seek uint32) (uint32, error)

func (Bytes32) Serialize

func (elm Bytes32) Serialize() ([]byte, error)

func (Bytes32) Size

func (elm Bytes32) Size() uint32

func (Bytes32) ToHex

func (elm Bytes32) ToHex() string

type Bytes33

type Bytes33 []byte

func (*Bytes33) Parse

func (elm *Bytes33) Parse(buf []byte, seek uint32) (uint32, error)

func (Bytes33) Serialize

func (elm Bytes33) Serialize() ([]byte, error)

func (Bytes33) Size

func (elm Bytes33) Size() uint32

func (Bytes33) ToHex

func (elm Bytes33) ToHex() string

type Bytes4

type Bytes4 []byte

func (*Bytes4) Parse

func (elm *Bytes4) Parse(buf []byte, seek uint32) (uint32, error)

func (Bytes4) Serialize

func (elm Bytes4) Serialize() ([]byte, error)

func (Bytes4) Size

func (elm Bytes4) Size() uint32

func (Bytes4) ToHex

func (elm Bytes4) ToHex() string

type Bytes5

type Bytes5 []byte

func (*Bytes5) Parse

func (elm *Bytes5) Parse(buf []byte, seek uint32) (uint32, error)

func (Bytes5) Serialize

func (elm Bytes5) Serialize() ([]byte, error)

func (Bytes5) Size

func (elm Bytes5) Size() uint32

func (Bytes5) ToHex

func (elm Bytes5) ToHex() string

type Bytes6

type Bytes6 []byte

func (*Bytes6) Parse

func (elm *Bytes6) Parse(buf []byte, seek uint32) (uint32, error)

func (Bytes6) Serialize

func (elm Bytes6) Serialize() ([]byte, error)

func (Bytes6) Size

func (elm Bytes6) Size() uint32

func (Bytes6) ToHex

func (elm Bytes6) ToHex() string

type Bytes64

type Bytes64 []byte

func (*Bytes64) Parse

func (elm *Bytes64) Parse(buf []byte, seek uint32) (uint32, error)

func (Bytes64) Serialize

func (elm Bytes64) Serialize() ([]byte, error)

func (Bytes64) Size

func (elm Bytes64) Size() uint32

func (Bytes64) ToHex

func (elm Bytes64) ToHex() string

type Bytes8

type Bytes8 []byte

func (*Bytes8) Parse

func (elm *Bytes8) Parse(buf []byte, seek uint32) (uint32, error)

func (Bytes8) Serialize

func (elm Bytes8) Serialize() ([]byte, error)

func (Bytes8) Size

func (elm Bytes8) Size() uint32

func (Bytes8) ToHex

func (elm Bytes8) ToHex() string

type ChannelId

type ChannelId = Bytes16

type DiamondListMaxLen200

type DiamondListMaxLen200 struct {
	Count    VarUint1
	Diamonds []DiamondName
}

func NewEmptyDiamondListMaxLen200

func NewEmptyDiamondListMaxLen200() *DiamondListMaxLen200

func (*DiamondListMaxLen200) Parse

func (elm *DiamondListMaxLen200) Parse(buf []byte, seek uint32) (uint32, error)

func (*DiamondListMaxLen200) ParseHACDlistBySplitCommaFromString

func (elm *DiamondListMaxLen200) ParseHACDlistBySplitCommaFromString(hacdlistsplitcomma string) error

Create diamond

func (DiamondListMaxLen200) Serialize

func (elm DiamondListMaxLen200) Serialize() ([]byte, error)

func (*DiamondListMaxLen200) SerializeHACDlistToCommaSplitString

func (elm *DiamondListMaxLen200) SerializeHACDlistToCommaSplitString() string

Get the name list of block diamonds

func (DiamondListMaxLen200) Size

func (elm DiamondListMaxLen200) Size() uint32

type DiamondName

type DiamondName = Bytes6

func (DiamondName) Name

func (d DiamondName) Name() string

type DiamondNumber

type DiamondNumber = VarUint3

type DiamondSyslendId

type DiamondSyslendId = Bytes14

type ExtendMessageMaxLen255

type ExtendMessageMaxLen255 struct {
	Count   VarUint1
	Message []byte
}

func (*ExtendMessageMaxLen255) Parse

func (e *ExtendMessageMaxLen255) Parse(buf []byte, seek uint32) (uint32, error)

func (ExtendMessageMaxLen255) Serialize

func (e ExtendMessageMaxLen255) Serialize() ([]byte, error)

func (ExtendMessageMaxLen255) Size

func (e ExtendMessageMaxLen255) Size() uint32

type Hash

type Hash = Bytes32

func CalculateHash

func CalculateHash(stuff []byte) Hash

Sha3 calculate 32-bit hash value

func (Hash) Equal

func (h Hash) Equal(tar Hash) bool

func (Hash) GetHalfChecker

func (h Hash) GetHalfChecker() HashHalfChecker

func (Hash) GetNonceChecker

func (h Hash) GetNonceChecker() HashNonceChecker

func (Hash) NotZeroBlank

func (h Hash) NotZeroBlank() bool

type HashHalfChecker

type HashHalfChecker = Bytes16

func (HashHalfChecker) Equal

func (h HashHalfChecker) Equal(tar HashHalfChecker) bool

type HashListMax65535

type HashListMax65535 struct {
	Count VarUint2
	Hashs []Hash
}

func CreateHashListMax65535

func CreateHashListMax65535(hxs []Hash) HashListMax65535

func (*HashListMax65535) Parse

func (this *HashListMax65535) Parse(buf []byte, seek uint32) (uint32, error)

func (*HashListMax65535) Serialize

func (this *HashListMax65535) Serialize() ([]byte, error)

func (*HashListMax65535) Size

func (this *HashListMax65535) Size() uint32

type HashNonceChecker

type HashNonceChecker = Bytes8

func (HashNonceChecker) Equal

func (h HashNonceChecker) Equal(tar HashNonceChecker) bool

type LockblsId

type LockblsId = Bytes18

type Multisign

type Multisign struct {
	CondElem      uint8 // molecule
	CondBase      uint8 // denominator
	PublicKeyList []Bytes33
	SignatureInds []uint8
	SignatureList []Bytes64
}

func (*Multisign) Parse

func (this *Multisign) Parse(buf []byte, seek uint32) (uint32, error)

func (*Multisign) Serialize

func (this *Multisign) Serialize() ([]byte, error)

func (*Multisign) Size

func (this *Multisign) Size() uint32

type Multisign2

type Multisign2 struct {
	CondElem          uint8      // molecule
	CondBase          uint8      // denominator
	SignatureInds     []VarUint2 // Signature location
	BasePublicKeyInds []VarUint2 // Public key base location
}

type OptionalAddress

type OptionalAddress struct {
	Exist Bool
	Addr  Address
}

func NewEmptyOptionalAddress

func NewEmptyOptionalAddress() OptionalAddress

func (*OptionalAddress) Parse

func (elm *OptionalAddress) Parse(buf []byte, seek uint32) (uint32, error)

func (OptionalAddress) Serialize

func (elm OptionalAddress) Serialize() ([]byte, error)

func (OptionalAddress) ShowReadableOrEmpty

func (elm OptionalAddress) ShowReadableOrEmpty() string

display address

func (OptionalAddress) Size

func (elm OptionalAddress) Size() uint32

type Property

type Property struct {
	// contains filtered or unexported fields
}

type Satoshi

type Satoshi = VarUint8

比特币一亿分之一

func (Satoshi) GetSatoshiVariation

func (elm Satoshi) GetSatoshiVariation() SatoshiVariation

type SatoshiVariation

type SatoshiVariation struct {
	NotEmpty Bool
	ValueSAT Satoshi
}

func NewEmptySatoshiVariation

func NewEmptySatoshiVariation() SatoshiVariation

func NewSatoshiVariation

func NewSatoshiVariation(sats uint64) SatoshiVariation

func (*SatoshiVariation) GetRealSatoshi

func (elm *SatoshiVariation) GetRealSatoshi() Satoshi

Get true value

func (*SatoshiVariation) Parse

func (elm *SatoshiVariation) Parse(buf []byte, seek uint32) (uint32, error)

func (SatoshiVariation) Serialize

func (elm SatoshiVariation) Serialize() ([]byte, error)

func (SatoshiVariation) Size

func (elm SatoshiVariation) Size() uint32

type Sign

type Sign struct {
	PublicKey Bytes33
	Signature Bytes64
}

func CreateEmptySign

func CreateEmptySign() Sign

func (*Sign) GetAddress

func (this *Sign) GetAddress() Address

func (*Sign) Parse

func (this *Sign) Parse(buf []byte, seek uint32) (uint32, error)

func (*Sign) Serialize

func (this *Sign) Serialize() ([]byte, error)

func (*Sign) Size

func (this *Sign) Size() uint32

type SignCheckData

type SignCheckData struct {
	Signdata Sign
	Stuffstr StringMax65535
}

Signature verification data

func CreateSignCheckData

func CreateSignCheckData(str string) SignCheckData

func (*SignCheckData) FillSign

func (elm *SignCheckData) FillSign(acc *account.Account) error

Fill in signature

func (*SignCheckData) Parse

func (elm *SignCheckData) Parse(buf []byte, seek uint32) (uint32, error)

func (SignCheckData) Serialize

func (elm SignCheckData) Serialize() ([]byte, error)

func (SignCheckData) Size

func (elm SignCheckData) Size() uint32

func (SignCheckData) VerifySign

func (elm SignCheckData) VerifySign() (bool, Address, error)

check sign

type SignListMax255

type SignListMax255 struct {
	Count VarUint1
	Signs []Sign
}

func CreateEmptySignListMax255

func CreateEmptySignListMax255() *SignListMax255

func (*SignListMax255) Append

func (this *SignListMax255) Append(sign Sign)

func (*SignListMax255) Parse

func (this *SignListMax255) Parse(buf []byte, seek uint32) (uint32, error)

func (*SignListMax255) Serialize

func (this *SignListMax255) Serialize() ([]byte, error)

func (*SignListMax255) Size

func (this *SignListMax255) Size() uint32

type SignListMax65535

type SignListMax65535 struct {
	Count VarUint2
	Signs []Sign
}

func (*SignListMax65535) Parse

func (this *SignListMax65535) Parse(buf []byte, seek uint32) (uint32, error)

func (*SignListMax65535) Serialize

func (this *SignListMax65535) Serialize() ([]byte, error)

func (*SignListMax65535) Size

func (this *SignListMax65535) Size() uint32

type StringMax16777215

type StringMax16777215 struct {
	Len VarUint3
	Str string
}

max length = 16777215

func CreateStringMax16777215

func CreateStringMax16777215(str string) StringMax16777215

func (*StringMax16777215) Parse

func (elm *StringMax16777215) Parse(buf []byte, seek uint32) (uint32, error)

func (StringMax16777215) Serialize

func (elm StringMax16777215) Serialize() ([]byte, error)

func (StringMax16777215) Size

func (elm StringMax16777215) Size() uint32

func (StringMax16777215) Value

func (elm StringMax16777215) Value() string

type StringMax255

type StringMax255 struct {
	Len VarUint1
	Str string
}

max length = 255

func CreateStringMax255

func CreateStringMax255(str string) StringMax255

func (*StringMax255) Parse

func (elm *StringMax255) Parse(buf []byte, seek uint32) (uint32, error)

func (StringMax255) Serialize

func (elm StringMax255) Serialize() ([]byte, error)

func (StringMax255) ShowString

func (elm StringMax255) ShowString() string

func (StringMax255) Size

func (elm StringMax255) Size() uint32

func (StringMax255) Value

func (elm StringMax255) Value() string

type StringMax255List255

type StringMax255List255 struct {
	Count VarUint1
	Lists []StringMax255
}

max length = 255

func CreateEmptyStringMax255List255

func CreateEmptyStringMax255List255() StringMax255List255

func (*StringMax255List255) Append

func (this *StringMax255List255) Append(str *StringMax255) error

func (*StringMax255List255) Parse

func (this *StringMax255List255) Parse(buf []byte, seek uint32) (uint32, error)

func (*StringMax255List255) Serialize

func (this *StringMax255List255) Serialize() ([]byte, error)

func (*StringMax255List255) Size

func (this *StringMax255List255) Size() uint32

type StringMax65535

type StringMax65535 struct {
	Len VarUint2
	Str string
}

max length = 65535

func CreateStringMax65535

func CreateStringMax65535(str string) StringMax65535

func (*StringMax65535) Parse

func (elm *StringMax65535) Parse(buf []byte, seek uint32) (uint32, error)

func (StringMax65535) Serialize

func (elm StringMax65535) Serialize() ([]byte, error)

func (StringMax65535) Size

func (elm StringMax65535) Size() uint32

func (StringMax65535) Value

func (elm StringMax65535) Value() string

type TrimString16

type TrimString16 string

func (*TrimString16) Parse

func (elm *TrimString16) Parse(buf []byte, seek uint32) (uint32, error)

func (TrimString16) Serialize

func (elm TrimString16) Serialize() ([]byte, error)

func (TrimString16) Size

func (elm TrimString16) Size() uint32

func (TrimString16) ValueShow

func (elm TrimString16) ValueShow() string

type TrimString34

type TrimString34 string

func (*TrimString34) Parse

func (elm *TrimString34) Parse(buf []byte, seek uint32) (uint32, error)

func (TrimString34) Serialize

func (elm TrimString34) Serialize() ([]byte, error)

func (TrimString34) Size

func (elm TrimString34) Size() uint32

func (TrimString34) ValueShow

func (elm TrimString34) ValueShow() string

type TrimString64

type TrimString64 string

func (*TrimString64) Parse

func (elm *TrimString64) Parse(buf []byte, seek uint32) (uint32, error)

func (TrimString64) Serialize

func (elm TrimString64) Serialize() ([]byte, error)

func (TrimString64) Size

func (elm TrimString64) Size() uint32

func (TrimString64) ValueShow

func (elm TrimString64) ValueShow() string

type UserLendingId

type UserLendingId = Bytes17

type VarUint1

type VarUint1 uint8

func (*VarUint1) Parse

func (elm *VarUint1) Parse(buf []byte, seek uint32) (uint32, error)

func (VarUint1) Serialize

func (elm VarUint1) Serialize() ([]byte, error)

func (VarUint1) Size

func (elm VarUint1) Size() uint32

type VarUint2

type VarUint2 uint16

func (*VarUint2) Parse

func (elm *VarUint2) Parse(buf []byte, seek uint32) (uint32, error)

func (VarUint2) Serialize

func (elm VarUint2) Serialize() ([]byte, error)

func (VarUint2) Size

func (elm VarUint2) Size() uint32

type VarUint3

type VarUint3 uint32

func (*VarUint3) Parse

func (elm *VarUint3) Parse(buf []byte, seek uint32) (uint32, error)

func (VarUint3) Serialize

func (elm VarUint3) Serialize() ([]byte, error)

func (VarUint3) Size

func (elm VarUint3) Size() uint32

type VarUint4

type VarUint4 uint32

func (*VarUint4) Parse

func (elm *VarUint4) Parse(buf []byte, seek uint32) (uint32, error)

func (VarUint4) Serialize

func (elm VarUint4) Serialize() ([]byte, error)

func (VarUint4) Size

func (elm VarUint4) Size() uint32

type VarUint5

type VarUint5 uint64

func (*VarUint5) Parse

func (elm *VarUint5) Parse(buf []byte, seek uint32) (uint32, error)

func (VarUint5) Serialize

func (elm VarUint5) Serialize() ([]byte, error)

func (VarUint5) Size

func (elm VarUint5) Size() uint32

type VarUint6

type VarUint6 uint64

func (*VarUint6) Parse

func (elm *VarUint6) Parse(buf []byte, seek uint32) (uint32, error)

func (VarUint6) Serialize

func (elm VarUint6) Serialize() ([]byte, error)

func (VarUint6) Size

func (elm VarUint6) Size() uint32

type VarUint7

type VarUint7 uint64

func (*VarUint7) Parse

func (elm *VarUint7) Parse(buf []byte, seek uint32) (uint32, error)

func (VarUint7) Serialize

func (elm VarUint7) Serialize() ([]byte, error)

func (VarUint7) Size

func (elm VarUint7) Size() uint32

type VarUint8

type VarUint8 uint64

func (*VarUint8) Parse

func (elm *VarUint8) Parse(buf []byte, seek uint32) (uint32, error)

func (VarUint8) Serialize

func (elm VarUint8) Serialize() ([]byte, error)

func (VarUint8) Size

func (elm VarUint8) Size() uint32

func (VarUint8) ToString

func (elm VarUint8) ToString() string

ToString

Jump to

Keyboard shortcuts

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