Sha256: 2b6bc9fca6b11febf5497c5a14e1f7839dd0f87a8bc23de4f1809a7aab07ba54

Contents?: true

Size: 264 Bytes

Versions: 26

Compression:

Stored size: 264 Bytes

Contents

module RubySMB
  module Field
    # Represents a String in UTF-16LE
    class String16 < BinData::String
      def assign(val)
        super(val.encode('utf-16le'))
      end

      def snapshot
        super.force_encoding('utf-16le')
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
ruby_smb-2.0.12 lib/ruby_smb/field/string16.rb
ruby_smb-2.0.11 lib/ruby_smb/field/string16.rb
ruby_smb-2.0.10 lib/ruby_smb/field/string16.rb
ruby_smb-2.0.9 lib/ruby_smb/field/string16.rb
ruby_smb-2.0.8 lib/ruby_smb/field/string16.rb
ruby_smb-2.0.7 lib/ruby_smb/field/string16.rb
ruby_smb-2.0.6 lib/ruby_smb/field/string16.rb
ruby_smb-2.0.5 lib/ruby_smb/field/string16.rb
ruby_smb-2.0.4 lib/ruby_smb/field/string16.rb
ruby_smb-2.0.3 lib/ruby_smb/field/string16.rb
ruby_smb-2.0.2 lib/ruby_smb/field/string16.rb
ruby_smb-2.0.1 lib/ruby_smb/field/string16.rb
ruby_smb-2.0.0 lib/ruby_smb/field/string16.rb
ruby_smb-1.1.0 lib/ruby_smb/field/string16.rb
ruby_smb-1.0.5 lib/ruby_smb/field/string16.rb
ruby_smb-1.0.4 lib/ruby_smb/field/string16.rb
ruby_smb-1.0.3 lib/ruby_smb/field/string16.rb
ruby_smb-1.0.2 lib/ruby_smb/field/string16.rb
ruby_smb-1.0.1 lib/ruby_smb/field/string16.rb
ruby_smb-1.0.0 lib/ruby_smb/field/string16.rb