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

Method Bytes

pow/cpuminer/uint256.go:60–64  ·  view source on GitHub ↗

Bytes converts Uint256 to []byte.

()

Source from the content-addressed store, hash-verified

58
59// Bytes converts Uint256 to []byte.
60func (i *Uint256) Bytes() []byte {
61 var binBuf bytes.Buffer
62 binary.Write(&binBuf, binary.BigEndian, i)
63 return binBuf.Bytes()
64}
65
66// MarshalHash marshals for hash.
67func (i *Uint256) MarshalHash() (o []byte, err error) {

Callers 15

MarshalHashMethod · 0.95
TestUint256Function · 0.95
clientHandshakeMethod · 0.95
serializeFunction · 0.45
TestResponse_SignFunction · 0.45
BenchmarkEncodeFunction · 0.45

Calls 1

WriteMethod · 0.65

Tested by 15

TestUint256Function · 0.76
serializeFunction · 0.36
TestResponse_SignFunction · 0.36
BenchmarkEncodeFunction · 0.36