Module: Aws::EventStream::Types

Defined in:
gems/aws-eventstream/lib/aws-eventstream/types.rb

Overview

Message Header Value Types

Class Method Summary collapse

Class Method Details

.patternObject

pack/unpack pattern, byte size, type idx



25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'gems/aws-eventstream/lib/aws-eventstream/types.rb', line 25

def self.pattern
  {
    'bool_true' => [true, 0, 0],
    'bool_false' => [false, 0, 1],
    'byte' => ["c", 1, 2],
    'short' => ["s>", 2, 3],
    'integer' => ["l>", 4, 4],
    'long' => ["q>", 8, 5],
    'bytes' => [nil, nil, 6],
    'string' => [nil, nil, 7],
    'timestamp' => ["q>", 8, 8],
    'uuid' => [nil, 16, 9]
  }
end

.typesObject



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'gems/aws-eventstream/lib/aws-eventstream/types.rb', line 9

def self.types
  [
    'bool_true',
    'bool_false',
    'byte',
    'short',
    'integer',
    'long',
    'bytes',
    'string',
    'timestamp',
    'uuid'
  ]
end