Method: LEON::StringBuffer#writeFloatLE

Defined in:
lib/string-buffer.rb

#writeFloatLE(v, i) ⇒ Object



212
213
214
215
216
217
218
219
# File 'lib/string-buffer.rb', line 212

def writeFloatLE(v, i)
  bytez = StringBuffer.bytes(v, Constants::FLOAT)
  i = normalize(i)
  bytez.to_enum.with_index.reverse_each { |v, idx|
    writeUInt8(v, i + (3 - idx))
  }
  return i + 4
end