// Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // // The go-ethereum library is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // The go-ethereum library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with the go-ethereum library. If not, see . // Contains all the wrappers from the math/big package. package geth import ( "errors" "math/big" "github.com/ethereum/go-ethereum/common" ) // A BigInt represents a signed multi-precision integer. type BigInt struct { bigint *big.Int } // NewBigInt allocates and returns a new BigInt set to x. func NewBigInt(x int64) *BigInt { return &BigInt{big.NewInt(x)} } // GetBytes returns the absolute value of x as a big-endian byte slice. func (bi *BigInt) GetBytes() []byte { return bi.bigint.Bytes() } // String returns the value of x as a formatted decimal string. func (bi *BigInt) String() string { return bi.bigint.String() } // GetInt64 returns the int64 representation of x. If x cannot be represented in // an int64, the result is undefined. func (bi *BigInt) GetInt64() int64 { return bi.bigint.Int64() } // SetBytes interprets buf as the bytes of a big-endian unsigned integer and sets // the big int to that value. func (bi *BigInt) SetBytes(buf []byte) { bi.bigint.SetBytes(common.CopyBytes(buf)) } // SetInt64 sets the big int to x. func (bi *BigInt) SetInt64(x int64) { bi.bigint.SetInt64(x) } // Sign returns: // // -1 if x < 0 // 0 if x == 0 // +1 if x > 0 // func (bi *BigInt) Sign() int { return bi.bigint.Sign() } // SetString sets the big int to x. // // The string prefix determines the actual conversion base. A prefix of "0x" or // "0X" selects base 16; the "0" prefix selects base 8, and a "0b" or "0B" prefix // selects base 2. Otherwise the selected base is 10. func (bi *BigInt) SetString(x string, base int) { bi.bigint.SetString(x, base) } // BigInts represents a slice of big ints. type BigInts struct{ bigints []*big.Int } // Size returns the number of big ints in the slice. func (bi *BigInts) Size() int { return len(bi.bigints) } // Get returns the bigint at the given index from the slice. func (bi *BigInts) Get(index int) (bigint *BigInt, _ error) { if index < 0 || index >= len(bi.bigints) { return nil, errors.New("index out of bounds") } return &BigInt{bi.bigints[index]}, nil } // Set sets the big int at the given index in the slice. func (bi *BigInts) Set(index int, bigint *BigInt) error { if index < 0 || index >= len(bi.bigints) { return errors.New("index out of bounds") } bi.bigints[index] = bigint.bigint return nil } // GetString returns the value of x as a formatted string in some number base. func (bi *BigInt) GetString(base int) string { return bi.bigint.Text(base) } /elliptic-6.5.3'>dependabot/npm_and_yarn/devel/electron6/files/elliptic-6.5.3 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/kde4-l10n-zh_CN
Commit message (Expand)AuthorAgeFilesLines
* Update the KDE Software Compilation to 4.10.5.rakuco2013-07-051-2/+2
* Update to KDE SC 4.10.4, proudly presented by the KDE on FreeBSD team.rakuco2013-07-031-2/+2
* KDE/FreeBSD team presents KDE SC 4.10.3 ports!makc2013-05-192-4/+2
* KDE/FreeBSD team presents KDE SC 4.10.1 ports!makc2013-03-273-15/+35
* KDE/FreeBSD team presents KDE SC 4.9.5 ports!makc2013-02-043-26/+21
* KDE/FreeBSD team presents KDE SC 4.8.4, probably the last release in 4.8.x se...makc2012-06-152-3/+2
* - update png to 1.5.10dinoex2012-06-011-0/+1
* KDE/FreeBSD team presents long awaited KDE SC 4.8.3!makc2012-05-253-13/+20
* - Bump PORTREVISION to chase the update of multimedia/libvpxashish2012-02-161-0/+1
* The KDE/FreeBSD team is pleased to announce KDE SC 4.7.4, whichavilla2012-01-251-2/+2
* The KDE on FreeBSD team is pleased to update the KDE4 ports to 4.7.3.rakuco2011-11-141-2/+2
* The KDE/FreeBSD team is pleased to announce KDE Software Compilationavilla2011-10-172-7/+24
* Update KDE Software Compilation ports to 4.6.5makc2011-07-082-2/+52
* The FreeBSD KDE Team is pleased to announce KDE SC 4.6.4. Read fullavilla2011-06-141-2/+2
* Update KDE Software Compilation ports to 4.6.3makc2011-05-172-2/+46
* The FreeBSD KDE Team is pleased to announce April updates for KDEavilla2011-04-072-2/+19
* The FreeBSD KDE Team is pleased to announce KDE SC 4.6.1 and KDE PIMavilla2011-03-252-13/+31
* - The KDE FreeBSD team is proud to announce the release of KDE 4.5.5fluffy2011-01-081-2/+2
* KDE FreeBSD team presents KDE SC 4.5.4.makc2010-12-031-2/+2
* KDE FreeBSD team presents KDE SC 4.5.3.makc2010-11-041-3/+2
* KDE FreeBSD team presents KDE SC 4.5.2.makc2010-10-061-3/+3
* KDE FreeBSD team presents KDE SC 4.5.1.makc2010-09-032-93/+26
* Present KDE SC 4.4.5 for FreeBSD.makc2010-06-301-3/+3
* Present KDE SC 4.4.4 for FreeBSD.makc2010-06-021-3/+3
* - The FreeBSD KDE team is pleased to announce KDE SC 4.4.3 for FreeBSDfluffy2010-05-113-28/+76
* - update to 1.4.1dinoex2010-03-281-0/+1
* Presenting KDE 4.3.5 for FreeBSD. The official release notes for thismiwi2010-02-072-4/+3
* - update to jpeg-8dinoex2010-02-051-0/+1
* The FreeBSD KDE is please to announce the release of KDE 4.3.4,miwi2009-12-021-3/+3