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-0.0.24 lib/ruby_smb/field/string16.rb
ruby_smb-0.0.23 lib/ruby_smb/field/string16.rb
ruby_smb-0.0.22 lib/ruby_smb/field/string16.rb
ruby_smb-0.0.21 lib/ruby_smb/field/string16.rb
ruby_smb-0.0.20 lib/ruby_smb/field/string16.rb
ruby_smb-0.0.19 lib/ruby_smb/field/string16.rb