Update cof.go

This commit is contained in:
gucio321 2021-01-31 12:11:54 +01:00 committed by GitHub
parent d0288e309f
commit c5eb602de0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -140,8 +140,8 @@ func Load(fileData []byte) (*COF, error) {
return result, nil
}
// Unmarshal unmarshals COF into byte slince
func (c *COF) Unmarshal() []byte {
// Marshals encodes COF back into byte slince
func (c *COF) Marshal() []byte {
var result []byte
result = append(result, byte(c.NumberOfLayers))