mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2025-02-03 07:07:25 -05:00
Update cof.go
This commit is contained in:
parent
d0288e309f
commit
c5eb602de0
@ -140,8 +140,8 @@ func Load(fileData []byte) (*COF, error) {
|
|||||||
return result, nil
|
return result, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Unmarshal unmarshals COF into byte slince
|
// Marshals encodes COF back into byte slince
|
||||||
func (c *COF) Unmarshal() []byte {
|
func (c *COF) Marshal() []byte {
|
||||||
var result []byte
|
var result []byte
|
||||||
|
|
||||||
result = append(result, byte(c.NumberOfLayers))
|
result = append(result, byte(c.NumberOfLayers))
|
||||||
|
Loading…
Reference in New Issue
Block a user