Sha256: 227924e25df319eb4476d4691e4d5f0c5f9de8ab2f539d02dca96453f2631cb5

Contents?: true

Size: 503 Bytes

Versions: 39

Compression:

Stored size: 503 Bytes

Contents

require 'windows_error/nt_status'

module RubySMB
  module Field
    # Represents an NTStatus code as defined in
    # [2.3.1 NTSTATUS values](https://msdn.microsoft.com/en-us/library/cc704588.aspx)
    class NtStatus < BinData::Uint32le
      # Returns a meaningful error code parsed from the numeric value
      #
      # @return [WindowsError::ErrorCode] the ErrorCode object for this code
      def to_nt_status
        WindowsError::NTStatus.find_by_retval(value).first
      end
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

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