?? type_gblob.html
字號:
<html><head><title>Generated Documentation</title></head><body> <image src="headerimage.png"> <br><br><table><tr><td><big><big><big style="font-family: arial;"><b>GBlob</b></big></big></big><br><br></td><td> This class is for serializing and deserializing objects. It takes care of Endianness issues and protects against buffer overruns. This class would be particularly useful for writing a network protocol.</td></tr></table><br><br><big><big><i>Constructors (public)</i></big></big><br><div style="margin-left: 40px;"><big><b>GBlob</b></big>(int nOutBufferSize, bool bOkToResizeOutBuffer)<br></div><br><big><big><i>Destructors</i></big></big><br><div style="margin-left: 40px;"><big><b>~GBlob</b></big>()<br></div><br><big><big><i>Public</i></big></big><br><div style="margin-left: 40px;">int <big><b>GetInBlobSize</b></big>()<br>char* <big><b>GetOutBlob</b></big>()<br>int <big><b>GetOutBlobSize</b></big>()<br>void <big><b>Peek</b></big>(int nIndex, unsigned char* pData, int nSize)<br><div style="margin-left: 80px;"><font color=brown> Retrieves bytes from within the input buffer</font></div><br>void <big><b>Poke</b></big>(int nIndex, const unsigned char* pData, int nSize)<br><div style="margin-left: 80px;"><font color=brown> Puts bytes into the output buffer (overwriting existing data)</font></div><br>void <big><b>Poke</b></big>(int nIndex, const int n)<br><div style="margin-left: 80px;"><font color=brown> Puts an int into the output buffer (overwriting existing data)</font></div><br>void <big><b>Pop</b></big>(char* pc)<br><div style="margin-left: 80px;"><font color=brown> Pops a single char from the input buffer</font></div><br>void <big><b>Pop</b></big>(int* pn)<br><div style="margin-left: 80px;"><font color=brown> Pops an int from the input buffer</font></div><br>void <big><b>Pop</b></big>(unsigned int* pui)<br><div style="margin-left: 80px;"><font color=brown> Pops an unsigned int from the input buffer</font></div><br>void <big><b>Pop</b></big>(unsigned char* puc)<br><div style="margin-left: 80px;"><font color=brown> Pops an unsigned char from the input buffer</font></div><br>void <big><b>Pop</b></big>(float* pf)<br><div style="margin-left: 80px;"><font color=brown> Pops a float from the input buffer</font></div><br>void <big><b>Pop</b></big>(double* pd)<br><div style="margin-left: 80px;"><font color=brown> Pops a double from the input buffer</font></div><br>void <big><b>Pop</b></big>(char* pszString)<br><div style="margin-left: 80px;"><font color=brown> This allocates a char[] buffer of the appropriate size and fills it with a null-terminated string popped from the buffer.</font></div><br>void <big><b>Pop</b></big>(unsigned char* pData, int nSize)<br><div style="margin-left: 80px;"><font color=brown> Pops a blob from the input buffer</font></div><br>void <big><b>Push</b></big>(const int n)<br><div style="margin-left: 80px;"><font color=brown> Pushes an int into the output blob</font></div><br>void <big><b>Push</b></big>(const unsigned char uc)<br><div style="margin-left: 80px;"><font color=brown> Pushes an unsigned char into the output blob</font></div><br>void <big><b>Push</b></big>(const float f)<br><div style="margin-left: 80px;"><font color=brown> Pushes a float into the output blob</font></div><br>void <big><b>Push</b></big>(const double d)<br><div style="margin-left: 80px;"><font color=brown> Pushes a double into the output blob</font></div><br>void <big><b>Push</b></big>(const unsigned char* pData, int nSize)<br><div style="margin-left: 80px;"><font color=brown> Pushes a blob into the output blob</font></div><br>void <big><b>Push</b></big>(const char* szString)<br><div style="margin-left: 80px;"><font color=brown> Pushes a null-terminated string into the output blob</font></div><br>void <big><b>Push</b></big>(const unsigned int n)<br><div style="margin-left: 80px;"><font color=brown> Pushes an unsigned int into the output blob</font></div><br>void <big><b>Push</b></big>(const char c)<br><div style="margin-left: 80px;"><font color=brown> Pushes a char into the output blob</font></div><br>void <big><b>ResetInBuffer</b></big>()<br>void <big><b>ResetOutBuffer</b></big>()<br>void <big><b>SetInBuffer</b></big>(unsigned char* pInBuffer, int nSize, bool bDeleteBuffer)<br></div><br><big><big><i>Protected</i></big></big><br><div style="margin-left: 40px;">void <big><b>ResizeOutBuffer</b></big>(int nRequiredSize)<br></div><br></body></html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -