> For the complete documentation index, see [llms.txt](https://mwm5.twelite.info/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mwm5.twelite.info/0.8/references/parser/twefmt/twepacket/idenify_packet_type.md).

# idenify\_packet\_type()

パケットデータのバイト列を入力として、パケットの種別を判定します。また既に生成済みの[`spTwePacket`](/0.8/references/parser/twefmt/twepacket.md)オブジェクトの種別を返します。戻り値は[E\_PKT](/0.8/references/parser/twefmt/twepacket/e_pkt.md)です。

```cpp
E_PKT identify_packet_type(uint8_t* p, uint8_t u8len)
E_PKT identify_packet_type(SmplBuf_Byte& sbuff)

E_PKT identify_packet_type(spTwePacket& sp)
```
