⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mopacutl.h

📁 MONA是为数不多的C++语言编写的一个很小的操作系统
💻 H
字号:
/*!    \file  MoPacUtl.h    \brief Mona 僷働僢僩儐乕僥傿儕僥傿僋儔僗 僿僢僟    Copyright (c) 2004 Yamami    All rights reserved.    License=MIT/X Licnese    \author  Yamami     \version $Revision: 1.2 $    \date   create:2004/08/18 update:$Date: 2004/09/20 15:29:03 $*/#ifndef _MONA_MOPACUTL_#define _MONA_MOPACUTL_#include <sys/types.h>#include <monapi.h>/*!    MoEther class*/class MoPacUtl{      public:        //僐儞僗僩儔僋僞    MoPacUtl();    ~MoPacUtl();        static dword packet_get_4byte(byte *buf, int offset);    static word packet_get_2byte(byte *buf, dword offset);    static void packet_put_4byte(byte* buf, int offset, dword val);    static void packet_put_2byte(byte* buf, int offset, word val);    static word calcCheckSum(dword* ,int );    inline static word swapShort(word value)    {        return (value>>8)+(value<<8);    }    inline static dword swapLong(dword value)    {        return (value>>24)+((value>>8)&0xff00)+((value<<8)&0xff0000)+(value<<24);    }  private:    };#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -