MCPcopy Index your code
hub / github.com/cilium/ebpf / Size

Method Size

asm/opcode.go:139–144  ·  view source on GitHub ↗

Size returns the size for load and store operations.

()

Source from the content-addressed store, hash-verified

137
138// Size returns the size for load and store operations.
139func (op OpCode) Size() Size {
140 if !op.Class().isLoadOrStore() {
141 return InvalidSize
142 }
143 return Size(op & sizeMask)
144}
145
146// AtomicOp returns the type of atomic operation.
147func (op OpCode) AtomicOp() AtomicOp {

Callers 1

StringMethod · 0.95

Calls 3

ClassMethod · 0.95
isLoadOrStoreMethod · 0.80
SizeTypeAlias · 0.70

Tested by

no test coverage detected