16 lines
224 B
Go
16 lines
224 B
Go
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
|
|
}
|