Module: CMF::Type

Defined in:
lib/cmf/type.rb

Overview

Defines the enum value for all types that can be stored in a CMF message.

Constant Summary collapse

POSITIVE_NUMBER =

Varint encoded integer.

0
NEGATIVE_NUMBER =

The value is multiplied by -1 and then serialized in the same manner as a POSITIVE_NUMBER.

1
STRING =

Varint length (in bytes) first, then the UTF-8 encoded string.

2
BYTE_ARRAY =

Varint length (in bytes) first, then the binary encoded string.

3
BOOL_TRUE =

True value, no additional data stored.

4
BOOL_FALSE =

False value, no additional data stored.

5
DOUBLE =

Double-precision (8 bytes) little-endian floating-point number.

6