MCPcopy Create free account
hub / github.com/CPChain/chain / SetBytes

Method SetBytes

types/bloom9.go:52–57  ·  view source on GitHub ↗

SetBytes sets the content of b to the given bytes. It panics if d is not of suitable size.

(d []byte)

Source from the content-addressed store, hash-verified

50// SetBytes sets the content of b to the given bytes.
51// It panics if d is not of suitable size.
52func (b *Bloom) SetBytes(d []byte) {
53 if len(b) < len(d) {
54 panic(fmt.Sprintf("bloom bytes too big %d %d", len(b), len(d)))
55 }
56 copy(b[BloomByteLength-len(d):], d)
57}
58
59// Add adds d to the filter. Future calls of Test(d) will return true.
60func (b *Bloom) Add(d *big.Int) {

Callers 15

BytesToBloomFunction · 0.95
AddMethod · 0.95
BigMethod · 0.80
TestBytesMethod · 0.80
SignatureValuesMethod · 0.80
TestBloomFunction · 0.80
GetStateMethod · 0.80
RunMethod · 0.80
RequiredGasMethod · 0.80
RunMethod · 0.80
RunMethod · 0.80
opSha3Function · 0.80

Calls

no outgoing calls

Tested by 9

TestBloomFunction · 0.64
testTwoOperandOpFunction · 0.64
TestByteOpFunction · 0.64
opBenchmarkFunction · 0.64
TestOpMstoreFunction · 0.64
TestExecuteFunction · 0.64
TestCallFunction · 0.64
TestLoadRsaKey3Function · 0.64