mFrame
載入中...
搜尋中...
無符合項目
ByteBufferInvert.h
1
7#ifndef MFRAME_5A999F7A_3DE3_494B_940A_A5BA5360324F
8#define MFRAME_5A999F7A_3DE3_494B_940A_A5BA5360324F
9
10/* ***************************************************************************************
11 * Include
12 */
13
14//----------------------------------------------------------------------------------------
15
16//----------------------------------------------------------------------------------------
17#include "./../io/ByteBuffer.h"
18
19/* ***************************************************************************************
20 * Namespace
21 */
22namespace mframe::io {
23 class ByteBufferInvert;
24}
25
26/* ***************************************************************************************
27 * Class/Interface/Struct/Enum
28 */
30 /* *************************************************************************************
31 * Variable
32 */
33
34 /* *************************************************************************************
35 * Abstract Method
36 */
37
38 /* *************************************************************************************
39 * Construct Method
40 */
41 public:
48
54 ByteBufferInvert(int length);
55
60 virtual ~ByteBufferInvert(void) override;
61
62 /* *************************************************************************************
63 * Operator Method
64 */
65
66 /* *************************************************************************************
67 * Public Method <Override>
68 */
69
70 /* *************************************************************************************
71 * Public Method
72 */
73 public:
81 inline bool pollShortMsb(uint16& result) {
82 return this->pollShortMsb(reinterpret_cast<short&>(result));
83 }
84
92 inline bool pollIntMsb(uint32& result) {
93 return this->pollIntMsb(reinterpret_cast<int&>(result));
94 }
95
103 bool putShortMsb(const short value);
104
112 bool putFloatMsb(const float value);
113
121 bool putIntMsb(const int value);
122
130 bool pollShortMsb(short& result);
131
139 bool pollIntMsb(int& result);
140
145 bool pollFloatMsb(float& result);
146 /* *************************************************************************************
147 * Protected Method
148 */
149
150 /* *************************************************************************************
151 * Private Method
152 */
153
154 /* *************************************************************************************
155 * Static Variable
156 */
157
158 /* *************************************************************************************
159 * Static Method
160 */
161};
162
163/* ***************************************************************************************
164 * End of file
165 */
166
167#endif /* MFRAME_5A999F7A_3DE3_494B_940A_A5BA5360324F */
Definition ByteBuffer.h:35
mframe::lang::Memory & memory(void)
Definition ByteBuffer.h:347
Definition ByteBufferInvert.h:29
virtual ~ByteBufferInvert(void) override
Destroy the object.
bool putIntMsb(const int value)
ByteBufferInvert(const mframe::lang::Memory &memory)
Construct a new Byte Buffer Invert object.
ByteBufferInvert(int length)
Construct a new Byte Buffer Invert object.
bool pollIntMsb(uint32 &result)
Get the Int Msb object.
Definition ByteBufferInvert.h:92
bool pollShortMsb(uint16 &result)
Get the Short Msb object.
Definition ByteBufferInvert.h:81
bool putShortMsb(const short value)
bool pollIntMsb(int &result)
Get the Int Msb object.
bool pollShortMsb(short &result)
Get the Short Msb object.
bool putFloatMsb(const float value)
Definition Memory.h:29
Definition AppendableOutputStream.h:24