1 Star 0 Fork 19

examplessssss/y3-codec-golang

forked from YoMo/y3-codec-golang 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
node_packet.go 616 Bytes
一键复制 编辑 原始数据 按行查看 历史
package y3
// NodePacket 以`TLV结构`进行数据描述, 是用户定义类型
type NodePacket struct {
// length + raw buffer
basePacket
// NodePackets 存储 Node 类型
NodePackets []NodePacket
// PrimitivePackets 存储 Primitive 类型
PrimitivePackets []PrimitivePacket
}
// SeqID returns Tag Key
func (n *NodePacket) SeqID() byte {
return n.basePacket.tag.SeqID()
}
// IsSlice determine if the current node is a Slice
func (n *NodePacket) IsSlice() bool {
return n.basePacket.tag.IsSlice()
}
// GetValBuf get raw buffer of NodePacket
func (n *NodePacket) GetValBuf() []byte {
return n.valBuf
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/py-example/y3-codec-golang.git
git@gitee.com:py-example/y3-codec-golang.git
py-example
y3-codec-golang
y3-codec-golang
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385