memgraph/include/communication/bolt/v1/packing/codes.hpp

59 lines
886 B
C++
Raw Normal View History

2016-08-02 05:14:09 +08:00
#pragma once
#include <cstdint>
namespace bolt
{
namespace pack
{
enum Code : uint8_t
{
2016-08-08 04:19:04 +08:00
TinyString = 0x80,
TinyList = 0x90,
TinyMap = 0xA0,
TinyStruct = 0xB0,
2016-08-02 05:14:09 +08:00
2016-08-08 04:19:04 +08:00
Null = 0xC0,
2016-08-02 05:14:09 +08:00
2016-08-08 04:19:04 +08:00
Float64 = 0xC1,
2016-08-02 05:14:09 +08:00
2016-08-08 04:19:04 +08:00
False = 0xC2,
True = 0xC3,
2016-08-02 05:14:09 +08:00
2016-08-08 04:19:04 +08:00
Int8 = 0xC8,
Int16 = 0xC9,
Int32 = 0xCA,
Int64 = 0xCB,
2016-08-02 05:14:09 +08:00
2016-08-08 04:19:04 +08:00
Bytes8 = 0xCC,
Bytes16 = 0xCD,
Bytes32 = 0xCE,
2016-08-02 05:14:09 +08:00
2016-08-08 04:19:04 +08:00
String8 = 0xD0,
String16 = 0xD1,
String32 = 0xD2,
2016-08-02 05:14:09 +08:00
2016-08-08 04:19:04 +08:00
List8 = 0xD4,
List16 = 0xD5,
List32 = 0xD6,
2016-08-02 05:14:09 +08:00
2016-08-08 04:19:04 +08:00
Map8 = 0xD8,
Map16 = 0xD9,
Map32 = 0xDA,
MapStream = 0xDB,
2016-08-02 05:14:09 +08:00
2016-08-08 04:19:04 +08:00
Node = 0x4E,
Relationship = 0x52,
Path = 0x50,
Struct8 = 0xDC,
Struct16 = 0xDD,
EndOfStream = 0xDF,
2016-08-02 05:14:09 +08:00
};
}
}