just use marshal methods directly

This commit is contained in:
Joel Wetzell
2026-02-08 20:37:30 -06:00
parent f63b8886ce
commit 744817ec17
6 changed files with 33 additions and 41 deletions
-12
View File
@@ -20,18 +20,6 @@ type ArtTimeCode struct {
Type uint8
}
func NewArtTimeCode(data []byte) (*ArtTimeCode, error) {
artTimeCode := ArtTimeCode{}
err := artTimeCode.UnmarshalBinary(data)
if err != nil {
return nil, err
}
return &artTimeCode, nil
}
func (atc *ArtTimeCode) GetOpCode() uint16 {
return atc.OpCode
}