10 Star 40 Fork 19

Gitee 极速下载/Pion-WebRTC

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/pion/webrtc
克隆/下载
param_chunk_list.go 484 Bytes
一键复制 编辑 原始数据 按行查看 历史
package sctp
type paramChunkList struct {
paramHeader
chunkTypes []chunkType
}
func (c *paramChunkList) marshal() ([]byte, error) {
c.typ = chunkList
c.raw = make([]byte, len(c.chunkTypes))
for i, t := range c.chunkTypes {
c.raw[i] = byte(t)
}
return c.paramHeader.marshal()
}
func (c *paramChunkList) unmarshal(raw []byte) (param, error) {
c.paramHeader.unmarshal(raw)
for _, t := range c.raw {
c.chunkTypes = append(c.chunkTypes, chunkType(t))
}
return c, nil
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/Pion-WebRTC.git
git@gitee.com:mirrors/Pion-WebRTC.git
mirrors
Pion-WebRTC
Pion-WebRTC
v1.1.1

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385