Sha256: 35b31a88f7760f13650c20054fc856ff8a7d30e96887a0507734b802fd0ffaa1

Contents?: true

Size: 1.83 KB

Versions: 5

Compression:

Stored size: 1.83 KB

Contents

require 'asciipack'
require 'ostruct'

T = OpenStruct.new({
  :int4              => 'a',
  :int8              => 'b',
  :int16             => 'c',
  :int32             => 'd',
  :int64             => 'e',
#   (blank)            => 'f',
  :uint8             => 'g',
  :uint16            => 'h',
  :uint32            => 'i',
  :uint64            => 'j',
  :float32           => 'k',
  :float64           => 'l',
#   (blank)            => 'm',
  :str8              => 'n',
  :str16             => 'o',
  :str32             => 'p',
#   (blank)            => 'q',
  :map4              => 'r',
  :map8              => 's',
  :map16             => 't',
  :map32             => 'u',
  :array4            => 'v',
  :array8            => 'w',
  :array16           => 'x',
  :array32           => 'y',
#   (blank)            => 'z',
  :positive_fixint_0 => '0',
  :positive_fixint_1 => '1',
  :positive_fixint_2 => '2',
  :positive_fixint_3 => '3',
  :positive_fixint_4 => '4',
  :positive_fixint_5 => '5',
  :positive_fixint_6 => '6',
  :positive_fixint_7 => '7',
  :positive_fixint_8 => '8',
  :positive_fixint_9 => '9',
  :positive_fixint_A => 'A',
  :positive_fixint_B => 'B',
  :positive_fixint_C => 'C',
  :positive_fixint_D => 'D',
  :positive_fixint_E => 'E',
  :positive_fixint_F => 'F',
  :fixstr_0          => 'G',
  :fixstr_1          => 'H',
  :fixstr_2          => 'I',
  :fixstr_3          => 'J',
  :fixstr_4          => 'K',
  :fixstr_5          => 'L',
  :fixstr_6          => 'M',
  :fixstr_7          => 'N',
  :fixstr_8          => 'O',
  :fixstr_9          => 'P',
  :fixstr_A          => 'Q',
  :fixstr_B          => 'R',
  :fixstr_C          => 'S',
  :fixstr_D          => 'T',
  :fixstr_E          => 'U',
  :fixstr_F          => 'V',
  :nil               => 'W',
  :false             => 'X',
  :true              => 'Y',
#   (blank)            => 'Z',
})

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
asciipack-0.2.4 spec/spec_helper.rb
asciipack-0.2.3 spec/spec_helper.rb
asciipack-0.2.2 spec/spec_helper.rb
asciipack-0.2.1 spec/spec_helper.rb
asciipack-0.2.0 spec/spec_helper.rb