stream-server/srt/packet.go

17 lines
224 B
Go
Raw Normal View History

2023-09-18 11:51:55 +05:00
package srt
import (
)
type Packet struct {
raw []byte
}
func MarshallPacket(packet *Packet) ([]byte, error) {
return packet.raw, nil
}
func ParsePacket(buffer []byte) (*Packet, error) {
return &Packet{buffer}, nil
}