Class: Tangram::LibTangram::TangramStringView

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

Instance Method Summary collapse

Instance Method Details

#into_stringObject


790
791
792
# File 'lib/tangram/tangram.rb', line 790

def into_string
  self[:ptr].read_string(self[:len]).force_encoding('utf-8')
end