PluginProbe
Defender Security – Malware Scanner, Login Security & Firewall / 5.3.1
Defender Security – Malware Scanner, Login Security & Firewall v5.3.1
6.3.0 6.2.3 6.2.4 6.2.0 6.2.1 6.2.2 6.1.0 5.3.1 5.4.0 5.4.1 5.5.0 5.5.1 5.6.0 5.6.1 5.6.2 5.7.0 5.7.1 5.7.2 5.8.0 5.8.1 5.9.0 6.0.0 6.0.1 3.0.1 3.1.0 All 141 releases
defender-security / vendor / spomky-labs / cbor-php / src / CBORObject.php

CBORObject.php in Defender Security – Malware Scanner, Login Security & Firewall 5.3.1, at vendor/spomky-labs/cbor-php/src/CBORObject.php

111 lines 2.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 declare(strict_types=1);
4
5 /*
6 * The MIT License (MIT)
7 *
8 * Copyright (c) 2018-2020 Spomky-Labs
9 *
10 * This software may be modified and distributed under the terms
11 * of the MIT license. See the LICENSE file for details.
12 */
13
14 namespace CBOR;
15
16 interface CBORObject
17 {
18 public const MAJOR_TYPE_UNSIGNED_INTEGER = 0b000;
19
20 public const MAJOR_TYPE_NEGATIVE_INTEGER = 0b001;
21
22 public const MAJOR_TYPE_BYTE_STRING = 0b010;
23
24 public const MAJOR_TYPE_TEXT_STRING = 0b011;
25
26 public const MAJOR_TYPE_LIST = 0b100;
27
28 public const MAJOR_TYPE_MAP = 0b101;
29
30 public const MAJOR_TYPE_TAG = 0b110;
31
32 public const MAJOR_TYPE_OTHER_TYPE = 0b111;
33
34 public const LENGTH_1_BYTE = 0b00011000;
35
36 public const LENGTH_2_BYTES = 0b00011001;
37
38 public const LENGTH_4_BYTES = 0b00011010;
39
40 public const LENGTH_8_BYTES = 0b00011011;
41
42 public const LENGTH_INDEFINITE = 0b00011111;
43
44 public const FUTURE_USE_1 = 0b00011100;
45
46 public const FUTURE_USE_2 = 0b00011101;
47
48 public const FUTURE_USE_3 = 0b00011110;
49
50 public const OBJECT_FALSE = 20;
51
52 public const OBJECT_TRUE = 21;
53
54 public const OBJECT_NULL = 22;
55
56 public const OBJECT_UNDEFINED = 23;
57
58 public const OBJECT_SIMPLE_VALUE = 24;
59
60 public const OBJECT_HALF_PRECISION_FLOAT = 25;
61
62 public const OBJECT_SINGLE_PRECISION_FLOAT = 26;
63
64 public const OBJECT_DOUBLE_PRECISION_FLOAT = 27;
65
66 public const OBJECT_BREAK = 0b00011111;
67
68 public const TAG_STANDARD_DATETIME = 0;
69
70 public const TAG_EPOCH_DATETIME = 1;
71
72 public const TAG_UNSIGNED_BIG_NUM = 2;
73
74 public const TAG_NEGATIVE_BIG_NUM = 3;
75
76 public const TAG_DECIMAL_FRACTION = 4;
77
78 public const TAG_BIG_FLOAT = 5;
79
80 public const TAG_ENCODED_BASE64_URL = 21;
81
82 public const TAG_ENCODED_BASE64 = 22;
83
84 public const TAG_ENCODED_BASE16 = 23;
85
86 public const TAG_ENCODED_CBOR = 24;
87
88 public const TAG_URI = 32;
89
90 public const TAG_BASE64_URL = 33;
91
92 public const TAG_BASE64 = 34;
93
94 public const TAG_MIME = 36;
95
96 public const TAG_CBOR = 55799;
97
98 public function __toString(): string;
99
100 public function getMajorType(): int;
101
102 public function getAdditionalInformation(): int;
103
104 /**
105 * @deprecated The method will be removed on v3.0. Please rely on the CBOR\Normalizable interface
106 *
107 * @return mixed|null
108 */
109 public function getNormalizedData(bool $ignoreTags = false);
110 }
111