Method: Rex::OLE::Util.putUnicodeString
- Defined in:
- lib/rex/ole/util.rb
.putUnicodeString(buf) ⇒ Object
134 135 136 137 138 139 140 |
# File 'lib/rex/ole/util.rb', line 134 def self.putUnicodeString(buf) buf = buf.unpack('C*').pack('v*') if (buf.length < 0x40) buf << "\x00" * (0x40 - buf.length) end buf end |