7 Star 38 Fork 19

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
}
Go
1
https://gitee.com/yomorun/y3-codec-golang.git
git@gitee.com:yomorun/y3-codec-golang.git
yomorun
y3-codec-golang
y3-codec-golang
master

搜索帮助