CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
Loading...
Searching...
No Matches
psyclone_client.datamessage.Layout Class Reference

Static Public Attributes

int VERSION = 10
int HEADER_SIZE = 200
int ENTRY_HEADER_SIZE = 8
int TYPE_LEVELS = 16
int CONTEXT_LEVELS = 16
tuple DATAMESSAGEID = (41 << 16) | 41
tuple PACKEDDATAMESSAGEID = (43 << 16) | 43
int CENC_PACKED = 0x0100
tuple UNUSEDID = (1 << 16) | 1
tuple CONSTCHARID = (2 << 16) | 2
tuple TIMEID = (3 << 16) | 3
tuple CHARDATAID = (4 << 16) | 4
tuple INTID = (5 << 16) | 5
tuple DOUBLEID = (6 << 16) | 6
dict FIELDS

Detailed Description

Byte layout of the C++ ``DataMessageHeader`` (format version VERSION), padding included.

Definition at line 23 of file datamessage.py.

Member Data Documentation

◆ CENC_PACKED

int psyclone_client.datamessage.Layout.CENC_PACKED = 0x0100
static

Definition at line 33 of file datamessage.py.

◆ CHARDATAID

tuple psyclone_client.datamessage.Layout.CHARDATAID = (4 << 16) | 4
static

Definition at line 37 of file datamessage.py.

◆ CONSTCHARID

tuple psyclone_client.datamessage.Layout.CONSTCHARID = (2 << 16) | 2
static

Definition at line 35 of file datamessage.py.

◆ CONTEXT_LEVELS

int psyclone_client.datamessage.Layout.CONTEXT_LEVELS = 16
static

Definition at line 29 of file datamessage.py.

◆ DATAMESSAGEID

tuple psyclone_client.datamessage.Layout.DATAMESSAGEID = (41 << 16) | 41
static

Definition at line 31 of file datamessage.py.

◆ DOUBLEID

tuple psyclone_client.datamessage.Layout.DOUBLEID = (6 << 16) | 6
static

Definition at line 39 of file datamessage.py.

◆ ENTRY_HEADER_SIZE

int psyclone_client.datamessage.Layout.ENTRY_HEADER_SIZE = 8
static

Definition at line 27 of file datamessage.py.

◆ FIELDS

dict psyclone_client.datamessage.Layout.FIELDS
static
Initial value:
= {
"size": (0, 4, "I"), "cid": (4, 4, "I"), "cver": (8, 2, "H"), "cenc": (10, 2, "H"),
"memid": (16, 8, "Q"), "time": (24, 8, "Q"), "sendtime": (32, 8, "Q"), "recvtime": (40, 8, "Q"),
"origin": (48, 2, "H"), "destination": (50, 2, "H"), "ttl": (56, 8, "Q"),
"priority": (64, 2, "H"), "policy": (66, 1, "B"), "from": (68, 4, "I"), "to": (72, 4, "I"),
"type": (76, 32, None), "tag": (108, 4, "I"), "status": (112, 2, "H"),
"reference": (120, 8, "Q"), "serial": (128, 8, "Q"), "contextchange": (136, 32, None),
"userSize": (168, 4, "I"), "userCount": (172, 4, "I"), "cyclecputime": (176, 4, "I"),
"cyclewalltime": (180, 4, "I"), "chaincputime": (184, 4, "I"), "chainwalltime": (188, 4, "I"),
"chaincount": (192, 4, "I"), "systemid": (196, 4, "I"),
}

Definition at line 42 of file datamessage.py.

Referenced by psyclone_client.stats.ConnectionStats.__init__(), psyclone_client.stats.ConnectionStats.as_dict(), psyclone_client.datamessage._Packed.decode(), and psyclone_client.datamessage._Packed.encode().

◆ HEADER_SIZE

int psyclone_client.datamessage.Layout.HEADER_SIZE = 200
static

Definition at line 26 of file datamessage.py.

◆ INTID

tuple psyclone_client.datamessage.Layout.INTID = (5 << 16) | 5
static

Definition at line 38 of file datamessage.py.

◆ PACKEDDATAMESSAGEID

tuple psyclone_client.datamessage.Layout.PACKEDDATAMESSAGEID = (43 << 16) | 43
static

Definition at line 32 of file datamessage.py.

◆ TIMEID

tuple psyclone_client.datamessage.Layout.TIMEID = (3 << 16) | 3
static

Definition at line 36 of file datamessage.py.

◆ TYPE_LEVELS

int psyclone_client.datamessage.Layout.TYPE_LEVELS = 16
static

Definition at line 28 of file datamessage.py.

◆ UNUSEDID

tuple psyclone_client.datamessage.Layout.UNUSEDID = (1 << 16) | 1
static

Definition at line 34 of file datamessage.py.

◆ VERSION

int psyclone_client.datamessage.Layout.VERSION = 10
static

Definition at line 25 of file datamessage.py.


The documentation for this class was generated from the following file: