class Assimp::String
Constants
- MAXLEN
Public Instance Methods
data()
click to toggle source
# File lib/assimp/types.rb, line 46 def data (pointer + 4).read_string(length) end
data=(str)
click to toggle source
# File lib/assimp/types.rb, line 50 def data=(str) sz = str.bytesize raise "String too long #{sz} > #{MAXLEN-1}!" if sz > MAXLEN-1 self[:length] = sz (pointer + 4).write_string(str+"\x00") end
to_s()
click to toggle source
# File lib/assimp/types.rb, line 57 def to_s data end