Class: SflowString

Inherits:
BinData::Primitive
  • Object
show all
Defined in:
lib/logstash/codecs/sflow/util.rb

Overview

noinspection RubyResolve

Instance Method Summary collapse

Instance Method Details

#getObject



70
71
72
# File 'lib/logstash/codecs/sflow/util.rb', line 70

def get
  self.data
end

#set(val) ⇒ Object



65
66
67
68
# File 'lib/logstash/codecs/sflow/util.rb', line 65

def set(val)
  self.read_length = val.length
  self.data = val
end