generated from TrueCloudLab/basic
16 lines
333 B
Go
16 lines
333 B
Go
|
package mfa
|
||
|
|
||
|
import (
|
||
|
"google.golang.org/protobuf/proto"
|
||
|
)
|
||
|
|
||
|
// Marshal returns the wire-format of MFABox.
|
||
|
func (x *MFABox) Marshal() ([]byte, error) {
|
||
|
return proto.Marshal(x)
|
||
|
}
|
||
|
|
||
|
// Unmarshal parses the wire-format message and put data into MFABox.
|
||
|
func (x *MFABox) Unmarshal(data []byte) error {
|
||
|
return proto.Unmarshal(data, x)
|
||
|
}
|