Method: LEON::Encoder#writeSI
- Defined in:
- lib/io.rb
#writeSI ⇒ Object
443 444 445 446 447 448 449 450 451 452 453 454 455 |
# File 'lib/io.rb', line 443 def writeSI() @stringIndex = LEON::gather_strings(@payload) if @stringIndex.length === 0 writeValue(0xFF, Constants::UNSIGNED_CHAR, true) return self end @stringIndexType = LEON::type_check(@stringIndex.length) writeValue(@stringIndex.length, @stringIndexType) @stringIndex.each { |v| writeString(v) } return self end |