# ADatatype

ADatatype 是所有 DepthAI 消息类型的抽象基类。它拥有所有消息暴露的共享元数据——时间戳、序列号和日志标识符——并提供主机端和设备端代码用于克隆和转换消息的接口。具体消息如
[Buffer](https://docs.luxonis.com/software-v3/depthai/depthai-components/messages/buffer.md) 和
[ImgFrame](https://docs.luxonis.com/software-v3/depthai/depthai-components/messages/img_frame.md) 派生自 ADatatype。

## 参考

### dai::ADatatype

Kind: class

Abstract message.

#### std::shared_ptr< Memory > data

Kind: variable

#### ADatatype()

Kind: function

#### ~ADatatype()

Kind: function

#### void serialize(std::vector< std::uint8_t > & metadata, DatatypeEnum & datatype)

Kind: function

#### DatatypeEnum getDatatype()

Kind: function

Get the datatype of this specific message.

return: DatatypeEnum

### 需要帮助？

请前往 [OAKChina 官网](https://www.oakchina.cn/) 获取技术支持或解答您的任何疑问。
