func (o Address) MarshalXDRInto(m *xdr.Marshaller) error { if l := len(o.URL); l > 2083 { return xdr.ElementSizeExceeded("URL", l, 2083) } m.MarshalString(o.URL) return m.Error }
func (o JoinSessionRequest) MarshalXDRInto(m *xdr.Marshaller) error { if l := len(o.Key); l > 32 { return xdr.ElementSizeExceeded("Key", l, 32) } m.MarshalBytes(o.Key) return m.Error }
func (o ConnectRequest) MarshalXDRInto(m *xdr.Marshaller) error { if l := len(o.ID); l > 32 { return xdr.ElementSizeExceeded("ID", l, 32) } m.MarshalBytes(o.ID) return m.Error }
func (o ClusterConfigMessage) MarshalXDRInto(m *xdr.Marshaller) error { if l := len(o.DeviceName); l > 64 { return xdr.ElementSizeExceeded("DeviceName", l, 64) } m.MarshalString(o.DeviceName) if l := len(o.ClientName); l > 64 { return xdr.ElementSizeExceeded("ClientName", l, 64) } m.MarshalString(o.ClientName) if l := len(o.ClientVersion); l > 64 { return xdr.ElementSizeExceeded("ClientVersion", l, 64) } m.MarshalString(o.ClientVersion) if l := len(o.Folders); l > 1000000 { return xdr.ElementSizeExceeded("Folders", l, 1000000) } m.MarshalUint32(uint32(len(o.Folders))) for i := range o.Folders { if err := o.Folders[i].MarshalXDRInto(m); err != nil { return err } } if l := len(o.Options); l > 64 { return xdr.ElementSizeExceeded("Options", l, 64) } m.MarshalUint32(uint32(len(o.Options))) for i := range o.Options { if err := o.Options[i].MarshalXDRInto(m); err != nil { return err } } return m.Error }
func (o fileVersion) MarshalXDRInto(m *xdr.Marshaller) error { if err := o.version.MarshalXDRInto(m); err != nil { return err } m.MarshalBytes(o.device) return m.Error }
func (o Folder) MarshalXDRInto(m *xdr.Marshaller) error { if l := len(o.ID); l > 256 { return xdr.ElementSizeExceeded("ID", l, 256) } m.MarshalString(o.ID) if l := len(o.Label); l > 256 { return xdr.ElementSizeExceeded("Label", l, 256) } m.MarshalString(o.Label) if l := len(o.Devices); l > 1000000 { return xdr.ElementSizeExceeded("Devices", l, 1000000) } m.MarshalUint32(uint32(len(o.Devices))) for i := range o.Devices { if err := o.Devices[i].MarshalXDRInto(m); err != nil { return err } } m.MarshalUint32(o.Flags) if l := len(o.Options); l > 64 { return xdr.ElementSizeExceeded("Options", l, 64) } m.MarshalUint32(uint32(len(o.Options))) for i := range o.Options { if err := o.Options[i].MarshalXDRInto(m); err != nil { return err } } return m.Error }
func (o CloseMessage) MarshalXDRInto(m *xdr.Marshaller) error { if l := len(o.Reason); l > 1024 { return xdr.ElementSizeExceeded("Reason", l, 1024) } m.MarshalString(o.Reason) m.MarshalUint32(uint32(o.Code)) return m.Error }
func (o Relay) MarshalXDRInto(m *xdr.Marshaller) error { if l := len(o.URL); l > 2083 { return xdr.ElementSizeExceeded("URL", l, 2083) } m.MarshalString(o.URL) m.MarshalUint32(uint32(o.Latency)) return m.Error }
func (o BlockInfo) MarshalXDRInto(m *xdr.Marshaller) error { m.MarshalUint32(uint32(o.Size)) if l := len(o.Hash); l > 64 { return xdr.ElementSizeExceeded("Hash", l, 64) } m.MarshalBytes(o.Hash) return m.Error }
func (o VersionList) MarshalXDRInto(m *xdr.Marshaller) error { m.MarshalUint32(uint32(len(o.versions))) for i := range o.versions { if err := o.versions[i].MarshalXDRInto(m); err != nil { return err } } return m.Error }
func (o Option) MarshalXDRInto(m *xdr.Marshaller) error { if l := len(o.Key); l > 64 { return xdr.ElementSizeExceeded("Key", l, 64) } m.MarshalString(o.Key) if l := len(o.Value); l > 1024 { return xdr.ElementSizeExceeded("Value", l, 1024) } m.MarshalString(o.Value) return m.Error }
func (o DownloadProgressMessage) MarshalXDRInto(m *xdr.Marshaller) error { if l := len(o.Folder); l > 64 { return xdr.ElementSizeExceeded("Folder", l, 64) } m.MarshalString(o.Folder) if l := len(o.Updates); l > 1000000 { return xdr.ElementSizeExceeded("Updates", l, 1000000) } m.MarshalUint32(uint32(len(o.Updates))) for i := range o.Updates { if err := o.Updates[i].MarshalXDRInto(m); err != nil { return err } } m.MarshalUint32(o.Flags) if l := len(o.Options); l > 64 { return xdr.ElementSizeExceeded("Options", l, 64) } m.MarshalUint32(uint32(len(o.Options))) for i := range o.Options { if err := o.Options[i].MarshalXDRInto(m); err != nil { return err } } return m.Error }
func (o Device) MarshalXDRInto(m *xdr.Marshaller) error { if l := len(o.ID); l > 32 { return xdr.ElementSizeExceeded("ID", l, 32) } m.MarshalBytes(o.ID) if l := len(o.Addresses); l > 16 { return xdr.ElementSizeExceeded("Addresses", l, 16) } m.MarshalUint32(uint32(len(o.Addresses))) for i := range o.Addresses { if err := o.Addresses[i].MarshalXDRInto(m); err != nil { return err } } return m.Error }
func (o Announce) MarshalXDRInto(m *xdr.Marshaller) error { m.MarshalUint32(o.Magic) if err := o.This.MarshalXDRInto(m); err != nil { return err } if l := len(o.Extra); l > 16 { return xdr.ElementSizeExceeded("Extra", l, 16) } m.MarshalUint32(uint32(len(o.Extra))) for i := range o.Extra { if err := o.Extra[i].MarshalXDRInto(m); err != nil { return err } } return m.Error }
func (o SessionInvitation) MarshalXDRInto(m *xdr.Marshaller) error { if l := len(o.From); l > 32 { return xdr.ElementSizeExceeded("From", l, 32) } m.MarshalBytes(o.From) if l := len(o.Key); l > 32 { return xdr.ElementSizeExceeded("Key", l, 32) } m.MarshalBytes(o.Key) if l := len(o.Address); l > 32 { return xdr.ElementSizeExceeded("Address", l, 32) } m.MarshalBytes(o.Address) m.MarshalUint16(o.Port) m.MarshalBool(o.ServerSocket) return m.Error }
func (o FileInfo) MarshalXDRInto(m *xdr.Marshaller) error { if l := len(o.Name); l > 8192 { return xdr.ElementSizeExceeded("Name", l, 8192) } m.MarshalString(o.Name) m.MarshalUint32(o.Flags) m.MarshalUint64(uint64(o.Modified)) if err := o.Version.MarshalXDRInto(m); err != nil { return err } m.MarshalUint64(uint64(o.LocalVersion)) if l := len(o.Blocks); l > 10000000 { return xdr.ElementSizeExceeded("Blocks", l, 10000000) } m.MarshalUint32(uint32(len(o.Blocks))) for i := range o.Blocks { if err := o.Blocks[i].MarshalXDRInto(m); err != nil { return err } } return m.Error }
func (v Vector) MarshalXDRInto(m *xdr.Marshaller) error { m.MarshalUint32(uint32(len(v))) for i := range v { m.MarshalUint64(uint64(v[i].ID)) m.MarshalUint64(v[i].Value) } return m.Error }
func (o FileDownloadProgressUpdate) MarshalXDRInto(m *xdr.Marshaller) error { m.MarshalUint32(o.UpdateType) if l := len(o.Name); l > 8192 { return xdr.ElementSizeExceeded("Name", l, 8192) } m.MarshalString(o.Name) if err := o.Version.MarshalXDRInto(m); err != nil { return err } if l := len(o.BlockIndexes); l > 1000000 { return xdr.ElementSizeExceeded("BlockIndexes", l, 1000000) } m.MarshalUint32(uint32(len(o.BlockIndexes))) for i := range o.BlockIndexes { m.MarshalUint32(uint32(o.BlockIndexes[i])) } return m.Error }
func (o Version13HelloMessage) MarshalXDRInto(m *xdr.Marshaller) error { if l := len(o.DeviceName); l > 64 { return xdr.ElementSizeExceeded("DeviceName", l, 64) } m.MarshalString(o.DeviceName) if l := len(o.ClientName); l > 64 { return xdr.ElementSizeExceeded("ClientName", l, 64) } m.MarshalString(o.ClientName) if l := len(o.ClientVersion); l > 64 { return xdr.ElementSizeExceeded("ClientVersion", l, 64) } m.MarshalString(o.ClientVersion) return m.Error }
func (o OtherStruct) MarshalXDRInto(m *xdr.Marshaller) error { m.MarshalUint32(o.F1) m.MarshalString(o.F2) return m.Error }
func (o XDRA) MarshalXDRInto(m *xdr.Marshaller) error { m.MarshalString(o.Name) m.MarshalUint64(uint64(o.BirthDay)) m.MarshalString(o.Phone) m.MarshalUint32(uint32(o.Siblings)) m.MarshalBool(o.Spouse) m.MarshalUint64(o.Money) return m.Error }
func (o RequestMessage) MarshalXDRInto(m *xdr.Marshaller) error { if l := len(o.Folder); l > 256 { return xdr.ElementSizeExceeded("Folder", l, 256) } m.MarshalString(o.Folder) if l := len(o.Name); l > 8192 { return xdr.ElementSizeExceeded("Name", l, 8192) } m.MarshalString(o.Name) m.MarshalUint64(uint64(o.Offset)) m.MarshalUint32(uint32(o.Size)) if l := len(o.Hash); l > 64 { return xdr.ElementSizeExceeded("Hash", l, 64) } m.MarshalBytes(o.Hash) m.MarshalUint32(o.Flags) if l := len(o.Options); l > 64 { return xdr.ElementSizeExceeded("Options", l, 64) } m.MarshalUint32(uint32(len(o.Options))) for i := range o.Options { if err := o.Options[i].MarshalXDRInto(m); err != nil { return err } } return m.Error }
func (o ResponseMessage) MarshalXDRInto(m *xdr.Marshaller) error { m.MarshalBytes(o.Data) m.MarshalUint32(uint32(o.Code)) return m.Error }
func (h header) MarshalXDRInto(m *xdr.Marshaller) error { v := encodeHeader(h) m.MarshalUint32(v) return m.Error }
func (o Response) MarshalXDRInto(m *xdr.Marshaller) error { m.MarshalUint32(uint32(o.Code)) m.MarshalString(o.Message) return m.Error }
func (o header) MarshalXDRInto(m *xdr.Marshaller) error { m.MarshalUint32(o.magic) m.MarshalUint32(uint32(o.messageType)) m.MarshalUint32(uint32(o.messageLength)) return m.Error }
func (o Device) MarshalXDRInto(m *xdr.Marshaller) error { if l := len(o.ID); l > 32 { return xdr.ElementSizeExceeded("ID", l, 32) } m.MarshalBytes(o.ID) if l := len(o.Name); l > 64 { return xdr.ElementSizeExceeded("Name", l, 64) } m.MarshalString(o.Name) if l := len(o.Addresses); l > 64 { return xdr.ElementSizeExceeded("Addresses", l, 64) } m.MarshalUint32(uint32(len(o.Addresses))) for i := range o.Addresses { m.MarshalString(o.Addresses[i]) } m.MarshalUint32(o.Compression) if l := len(o.CertName); l > 64 { return xdr.ElementSizeExceeded("CertName", l, 64) } m.MarshalString(o.CertName) m.MarshalUint64(uint64(o.MaxLocalVersion)) m.MarshalUint32(o.Flags) if l := len(o.Options); l > 64 { return xdr.ElementSizeExceeded("Options", l, 64) } m.MarshalUint32(uint32(len(o.Options))) for i := range o.Options { if err := o.Options[i].MarshalXDRInto(m); err != nil { return err } } return m.Error }
func (o TestStruct) MarshalXDRInto(m *xdr.Marshaller) error { m.MarshalBool(o.B) m.MarshalUint64(uint64(o.I)) m.MarshalUint8(uint8(o.I8)) m.MarshalUint8(o.UI8) m.MarshalUint16(uint16(o.I16)) m.MarshalUint16(o.UI16) m.MarshalUint32(uint32(o.I32)) m.MarshalUint32(o.UI32) m.MarshalUint64(uint64(o.I64)) m.MarshalUint64(o.UI64) if l := len(o.BS); l > 1024 { return xdr.ElementSizeExceeded("BS", l, 1024) } m.MarshalBytes(o.BS) if l := len(o.S); l > 1024 { return xdr.ElementSizeExceeded("S", l, 1024) } m.MarshalString(o.S) if err := o.C.MarshalXDRInto(m); err != nil { return err } if l := len(o.SS); l > 1024 { return xdr.ElementSizeExceeded("SS", l, 1024) } m.MarshalUint32(uint32(len(o.SS))) for i := range o.SS { m.MarshalString(o.SS[i]) } if err := o.ES.MarshalXDRInto(m); err != nil { return err } if err := o.OS.MarshalXDRInto(m); err != nil { return err } m.MarshalUint32(uint32(len(o.OSs))) for i := range o.OSs { if err := o.OSs[i].MarshalXDRInto(m); err != nil { return err } } return m.Error }
func (u *Opaque) MarshalXDRInto(m *xdr.Marshaller) error { m.MarshalRaw(u[:]) return m.Error }
func (o XDRBenchStruct) MarshalXDRInto(m *xdr.Marshaller) error { m.MarshalUint64(o.I1) m.MarshalUint32(o.I2) m.MarshalUint16(o.I3) m.MarshalUint8(o.I4) if l := len(o.Bs0); l > 128 { return xdr.ElementSizeExceeded("Bs0", l, 128) } m.MarshalBytes(o.Bs0) m.MarshalBytes(o.Bs1) m.MarshalUint32(uint32(len(o.Is0))) for i := range o.Is0 { m.MarshalUint32(uint32(o.Is0[i])) } if l := len(o.S0); l > 128 { return xdr.ElementSizeExceeded("S0", l, 128) } m.MarshalString(o.S0) m.MarshalString(o.S1) return m.Error }