Class: Chordsketch::UniFFILib::ForeignBytes

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/chordsketch_uniffi.rb

Instance Method Summary collapse

Instance Method Details

#dataObject



349
350
351
# File 'lib/chordsketch_uniffi.rb', line 349

def data
  self[:data]
end

#lenObject



345
346
347
# File 'lib/chordsketch_uniffi.rb', line 345

def len
  self[:len]
end

#to_sObject



353
354
355
# File 'lib/chordsketch_uniffi.rb', line 353

def to_s
  "ForeignBytes(len=#{len}, data=#{data.read_bytes(len)})"
end