Monobit Unity Networking ver.2.8.0 Server API Reference (C++)
MunBuffer.hpp
Go to the documentation of this file.
1 
8 #ifndef __MUN_BUFFER_HPP__
9 #define __MUN_BUFFER_HPP__
10 
11 #include <mrs.hpp>
12 #include <buffer.hpp>
13 
17 class MunBuffer : public mrs::Buffer
18 {
19 public:
24  void Resize(uint32 byteLen)
25  {
26  char* alloced = (char*)MRS_REALLOC( m_Data, byteLen );
27  if ( NULL == alloced ) return;
28 
29  m_Data = alloced;
30  m_DataLen = byteLen;
31  }
32 };
33 
34 #endif /* __MUN_BUFFER_HPP__ */
mrs::Buffer の拡張クラス.
Definition: MunBuffer.hpp:17
void Resize(uint32 byteLen)
リサイス処理.
Definition: MunBuffer.hpp:24