MCPcopy Index your code
hub / github.com/Monibuca/engine / Unmarshal

Method Unmarshal

common/frame.go:39–48  ·  view source on GitHub ↗
(raw []byte)

Source from the content-addressed store, hash-verified

37}
38
39func (r *RTPFrame) Unmarshal(raw []byte) *RTPFrame {
40 if r.Packet == nil {
41 r.Packet = &rtp.Packet{}
42 }
43 if err := r.Packet.Unmarshal(raw); err != nil {
44 log.Error(err)
45 return nil
46 }
47 return r
48}
49
50type DataFrame[T any] struct {
51 DeltaTime uint32 // 相对上一帧时间戳,毫秒

Callers 1

WriteRTPMethod · 0.95

Calls 2

ErrorFunction · 0.92
UnmarshalMethod · 0.65

Tested by

no test coverage detected