rclone/vendor/storj.io/common/pb/alias.go
2020-05-12 15:56:50 +00:00

13 lines
391 B
Go

// Copyright (C) 2020 Storj Labs, Inc.
// See LICENSE for copying information.
package pb
import proto "github.com/gogo/protobuf/proto"
// Unmarshal is an alias for proto.Unmarshal.
func Unmarshal(buf []byte, pb proto.Message) error { return proto.Unmarshal(buf, pb) }
// Marshal is an alias for proto.Marshal.
func Marshal(pb proto.Message) ([]byte, error) { return proto.Marshal(pb) }