class RubySMB::Field::String16

Represents a String in UTF-16LE

Public Instance Methods

assign(val) click to toggle source
Calls superclass method
# File lib/ruby_smb/field/string16.rb, line 5
def assign(val)
  super(val.encode('utf-16le'))
end
snapshot() click to toggle source
Calls superclass method
# File lib/ruby_smb/field/string16.rb, line 9
def snapshot
  super.force_encoding('utf-16le')
end