Debian Codegraph @

lib/3rdParty/composer/spomky-labs/cbor-php/src/CBORObject.php

raw symbols SCIP
1 <?php
2
3 declare(strict_types=1);
4
5 namespace CBOR;
6
7 use Stringable;
8
9 interface CBORObject extends Stringable
10 {
11 public const MAJOR_TYPE_UNSIGNED_INTEGER = 0b000;
12
13 public const MAJOR_TYPE_NEGATIVE_INTEGER = 0b001;
14
15 public const MAJOR_TYPE_BYTE_STRING = 0b010;
16
17 public const MAJOR_TYPE_TEXT_STRING = 0b011;
18
19 public const MAJOR_TYPE_LIST = 0b100;
20
21 public const MAJOR_TYPE_MAP = 0b101;
22
23 public const MAJOR_TYPE_TAG = 0b110;
24
25 public const MAJOR_TYPE_OTHER_TYPE = 0b111;
26
27 public const LENGTH_1_BYTE = 0b00011000;
28
29 public const LENGTH_2_BYTES = 0b00011001;
30
31 public const LENGTH_4_BYTES = 0b00011010;
32
33 public const LENGTH_8_BYTES = 0b00011011;
34
35 public const LENGTH_INDEFINITE = 0b00011111;
36
37 public const FUTURE_USE_1 = 0b00011100;
38
39 public const FUTURE_USE_2 = 0b00011101;
40
41 public const FUTURE_USE_3 = 0b00011110;
42
43 public const OBJECT_FALSE = 20;
44
45 public const OBJECT_TRUE = 21;
46
47 public const OBJECT_NULL = 22;
48
49 public const OBJECT_UNDEFINED = 23;
50
51 public const OBJECT_SIMPLE_VALUE = 24;
52
53 public const OBJECT_HALF_PRECISION_FLOAT = 25;
54
55 public const OBJECT_SINGLE_PRECISION_FLOAT = 26;
56
57 public const OBJECT_DOUBLE_PRECISION_FLOAT = 27;
58
59 public const OBJECT_BREAK = 0b00011111;
60
61 public const TAG_STANDARD_DATETIME = 0;
62
63 public const TAG_EPOCH_DATETIME = 1;
64
65 public const TAG_UNSIGNED_BIG_NUM = 2;
66
67 public const TAG_NEGATIVE_BIG_NUM = 3;
68
69 public const TAG_DECIMAL_FRACTION = 4;
70
71 public const TAG_BIG_FLOAT = 5;
72
73 public const TAG_ENCODED_BASE64_URL = 21;
74
75 public const TAG_ENCODED_BASE64 = 22;
76
77 public const TAG_ENCODED_BASE16 = 23;
78
79 public const TAG_ENCODED_CBOR = 24;
80
81 public const TAG_URI = 32;
82
83 public const TAG_BASE64_URL = 33;
84
85 public const TAG_BASE64 = 34;
86
87 public const TAG_MIME = 36;
88
89 public const TAG_CBOR = 55799;
90
91 public function getMajorType(): int;
92
93 public function getAdditionalInformation(): int;
94 }