Module: Aws::EventStream::Types

Defined in:
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



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

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



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

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