fa0101bd60
This changes the BEP protocol to use protocol buffer serialization instead of XDR, and therefore also the database format. The local discovery protocol is also updated to be protocol buffer format. GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3276 LGTM: AudriusButkevicius
9 lines
131 B
Go
9 lines
131 B
Go
package custombytesnonstruct
|
|
|
|
type CustomType int
|
|
|
|
func (c *CustomType) Unmarshal(data []byte) error {
|
|
data[0] = 42
|
|
return nil
|
|
}
|