Class: TurboRex::Fuzzer::Container::ContainerBase
- Inherits:
-
Object
- Object
- TurboRex::Fuzzer::Container::ContainerBase
- Defined in:
- lib/turborex/fuzzer/containers.rb
Direct Known Subclasses
FixedSizeBufferContainer, OLESTRContainer, StructureContainer, VariantSizeBufferContainer
Instance Attribute Summary collapse
-
#buf ⇒ Object
readonly
Returns the value of attribute buf.
Instance Method Summary collapse
Instance Attribute Details
#buf ⇒ Object (readonly)
Returns the value of attribute buf.
7 8 9 |
# File 'lib/turborex/fuzzer/containers.rb', line 7 def buf @buf end |
Instance Method Details
#fixed=(v) ⇒ Object
9 10 11 12 |
# File 'lib/turborex/fuzzer/containers.rb', line 9 def fixed=(v) @fixed = true set_data v end |
#mutate(mutator) ⇒ Object
14 15 16 17 |
# File 'lib/turborex/fuzzer/containers.rb', line 14 def mutate(mutator) return @buf if @fixed set_data mutator.mutate(@buf) end |