mFrame
載入中...
搜尋中...
無符合項目
Bytes.h
1
7#ifndef MFRAME_CAD6C6BA_43F2_4CE1_9A81_D130881FE7E6
8#define MFRAME_CAD6C6BA_43F2_4CE1_9A81_D130881FE7E6
9
10/* ***************************************************************************************
11 * Include
12 */
13
14//----------------------------------------------------------------------------------------
15#include "./../lang/NonInstantiable.h"
16
17//----------------------------------------------------------------------------------------
18
19/* ***************************************************************************************
20 * Namespace
21 */
22namespace ufm::numb {
23 class Bytes;
24} // namespace ufm::numb
25
26/* ***************************************************************************************
27 * Class/Interface/Struct/Enum
28 */
29
42 /* *************************************************************************************
43 * Variable
44 */
45
46 /* *************************************************************************************
47 * Abstract Method
48 */
49
50 /* *************************************************************************************
51 * Construct Method
52 */
53 protected:
58 virtual ~Bytes(void) override = default;
59
60 /* *************************************************************************************
61 * Operator Method
62 */
63
64 /* *************************************************************************************
65 * Override Method
66 */
67
68 /* *************************************************************************************
69 * Public Method
70 */
71
72 /* *************************************************************************************
73 * Protected Method
74 */
75
76 /* *************************************************************************************
77 * Private Method
78 */
79
80 /* *************************************************************************************
81 * Static Variable
82 */
83
84 /* *************************************************************************************
85 * Static Method
86 */
87 public:
96 static inline uint8 castUnsigned(char value) {
97 return static_cast<uint8>(value);
98 }
99
108 static inline char castSigned(uint8 value) {
109 return static_cast<char>(value);
110 }
111
122 static char valueOf(const char* str);
123};
124
125/* ***************************************************************************
126 * End of file
127 */
128
129#endif /* MFRAME_CAD6C6BA_43F2_4CE1_9A81_D130881FE7E6 */
Definition NonInstantiable.h:29
位元組靜態工具類
Definition Bytes.h:41
static char valueOf(const char *str)
解析字串為 char (byte) 值
static char castSigned(uint8 value)
轉換無符號 uint8 為有符號 char
Definition Bytes.h:108
virtual ~Bytes(void) override=default
Destroy the Bytes object.
static uint8 castUnsigned(char value)
轉換有符號 char 為無符號 uint8
Definition Bytes.h:96
Definition Boolean.h:23