Module: Hexdump

Extended by:
ModuleMethods
Defined in:
lib/hexdump.rb,
lib/hexdump/type.rb,
lib/hexdump/chars.rb,
lib/hexdump/mixin.rb,
lib/hexdump/theme.rb,
lib/hexdump/types.rb,
lib/hexdump/reader.rb,
lib/hexdump/hexdump.rb,
lib/hexdump/version.rb,
lib/hexdump/theme/ansi.rb,
lib/hexdump/theme/rule.rb,
lib/hexdump/format_string.rb,
lib/hexdump/numeric/octal.rb,
lib/hexdump/module_methods.rb,
lib/hexdump/numeric/binary.rb,
lib/hexdump/numeric/decimal.rb,
lib/hexdump/numeric/exceptions.rb,
lib/hexdump/numeric/char_or_int.rb,
lib/hexdump/numeric/hexadecimal.rb

Defined Under Namespace

Modules: Mixin, ModuleMethods, Numeric Classes: Chars, FormatString, Hexdump, Reader, Theme, Type

Constant Summary collapse

TYPES =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Since:

  • 1.0.0

{
  char:  Type::Char.new,
  uchar: Type::UChar.new,

  int8:  Type::Int8.new,
  uint8: Type::UInt8.new,

  int16:     Type::Int16.new,
  int16_le:  Type::Int16.new(endian: :little),
  int16_be:  Type::Int16.new(endian: :big),
  int16_ne:  Type::Int16.new(endian: :big),

  uint16:    Type::UInt16.new,
  uint16_le: Type::UInt16.new(endian: :little),
  uint16_be: Type::UInt16.new(endian: :big),
  uint16_ne: Type::UInt16.new(endian: :big),

  int32:     Type::Int32.new,
  int32_le:  Type::Int32.new(endian: :little),
  int32_be:  Type::Int32.new(endian: :big),
  int32_ne:  Type::Int32.new(endian: :big),

  uint32:    Type::UInt32.new,
  uint32_le: Type::UInt32.new(endian: :little),
  uint32_be: Type::UInt32.new(endian: :big),
  uint32_ne: Type::UInt32.new(endian: :big),

  int64:        Type::Int64.new,
  int64_le:     Type::Int64.new(endian: :little),
  int64_be:     Type::Int64.new(endian: :big),
  int64_ne:     Type::Int64.new(endian: :big),

  uint64:       Type::UInt64.new,
  uint64_le:    Type::UInt64.new(endian: :little),
  uint64_be:    Type::UInt64.new(endian: :big),
  uint64_ne:    Type::UInt64.new(endian: :big),

  float32:    Type::Float32.new,
  float32_le: Type::Float32.new(endian: :little),
  float32_be: Type::Float32.new(endian: :big),
  float32_ne: Type::Float32.new(endian: :big),

  float64:    Type::Float64.new,
  float64_le: Type::Float64.new(endian: :little),
  float64_be: Type::Float64.new(endian: :big),
  float64_ne: Type::Float64.new(endian: :big),
}
VERSION =

hexdump version

'1.0.1'

Class Method Summary collapse

Methods included from ModuleMethods

hexdump

Class Method Details

.dump(data, **kwargs) ⇒ Object



11
12
13
# File 'lib/hexdump.rb', line 11

def self.dump(data,**kwargs)
  hexdump(data,**kwargs)
end