Ai
10 Star 41 Fork 20

Gitee 极速下载/Pion-WebRTC

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

搜索帮助