MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / Uint256FromBytes

Function Uint256FromBytes

pow/cpuminer/uint256.go:77–84  ·  view source on GitHub ↗

Uint256FromBytes converts []byte to Uint256.

(b []byte)

Source from the content-addressed store, hash-verified

75
76// Uint256FromBytes converts []byte to Uint256.
77func Uint256FromBytes(b []byte) (*Uint256, error) {
78 if len(b) != 32 {
79 return nil, ErrBytesLen
80 }
81 i := Uint256{}
82 binary.Read(bytes.NewBuffer(b), binary.BigEndian, &i)
83 return &i, nil
84}

Callers 3

GetBPFromDNSSeedMethod · 0.92
serverHandshakeMethod · 0.92
TestUint256Function · 0.85

Calls 1

ReadMethod · 0.65

Tested by 1

TestUint256Function · 0.68