package taf // Type 是虎牙前端使用的 TAF/JCE 字段类型。 type Type byte const ( TypeInt8 Type = 0x00 TypeInt16 Type = 0x01 TypeInt32 Type = 0x02 TypeInt64 Type = 0x03 TypeFloat Type = 0x04 TypeDouble Type = 0x05 TypeString1 Type = 0x06 TypeString4 Type = 0x07 TypeMap Type = 0x08 TypeList Type = 0x09 TypeStructBegin Type = 0x0a TypeStructEnd Type = 0x0b TypeZero Type = 0x0c TypeSimpleList Type = 0x0d ) // Marshaler 表示可编码成 TAF 结构体字段的对象。 type Marshaler interface { WriteTo(*Writer) error } // Unmarshaler 表示可从 TAF 结构体字段读取自身的对象。 type Unmarshaler interface { ReadFrom(*Reader) error }