MCPcopy Create free account
hub / github.com/0xsequence/czip / Allows

Method Allows

compressor/buffer.go:80–90  ·  view source on GitHub ↗
(op uint)

Source from the content-addressed store, hash-verified

78}
79
80func (cb *Buffer) Allows(op uint) bool {
81 if cb.Refs.AllowOpcodes == nil {
82 return true
83 }
84
85 if cb.Refs.AllowOpcodes.List[op] {
86 return !cb.Refs.AllowOpcodes.Default
87 }
88
89 return cb.Refs.AllowOpcodes.Default
90}
91
92func (cb *Buffer) Data() []byte {
93 return cb.Commited

Callers 5

EncodeWordOptimizedMethod · 0.95
EncodeWordBytes32Method · 0.95
EncodeWordBytes32InvMethod · 0.95
WriteNBytesRawMethod · 0.95
WriteBytesOptimizedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected