Source File
int256.go
Belonging Package
github.com/gotd/td/bin
package bin
import
// Int256 represents signed 256-bit integer.
type Int256 [32]byte
// Decode implements bin.Decoder.
func ( *Int256) ( *Buffer) error {
, := .Int256()
if != nil {
return
}
* =
return nil
}
// Encode implements bin.Encoder.
func ( Int256) ( *Buffer) error {
.PutInt256()
return nil
}
// BigInt returns corresponding big.Int value.
func ( Int256) () *big.Int {
return big.NewInt(0).SetBytes([:])
}
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |