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