func (o *RequestMessage) decodeXDR(xr *xdr.Reader) error { o.Repository = xr.ReadStringMax(64) o.Name = xr.ReadStringMax(1024) o.Offset = xr.ReadUint64() o.Size = xr.ReadUint32() return xr.Error() }
func (o *AnnounceV1) decodeXDR(xr *xdr.Reader) error { o.Magic = xr.ReadUint32() o.Port = xr.ReadUint16() o.NodeID = xr.ReadStringMax(64) o.IP = xr.ReadBytesMax(16) return xr.Error() }
func (o *IndexMessage) decodeXDR(xr *xdr.Reader) error { o.Repository = xr.ReadStringMax(64) _FilesSize := int(xr.ReadUint32()) o.Files = make([]FileInfo, _FilesSize) for i := range o.Files { (&o.Files[i]).decodeXDR(xr) } return xr.Error() }
func (o *XDRBenchStruct) decodeXDR(xr *xdr.Reader) error { o.I1 = xr.ReadUint64() o.I2 = xr.ReadUint32() o.I3 = xr.ReadUint16() o.Bs0 = xr.ReadBytesMax(128) o.Bs1 = xr.ReadBytes() o.S0 = xr.ReadStringMax(128) o.S1 = xr.ReadString() return xr.Error() }
func (o *Repository) decodeXDR(xr *xdr.Reader) error { o.ID = xr.ReadStringMax(64) _NodesSize := int(xr.ReadUint32()) if _NodesSize > 64 { return xdr.ErrElementSizeExceeded } o.Nodes = make([]Node, _NodesSize) for i := range o.Nodes { (&o.Nodes[i]).decodeXDR(xr) } return xr.Error() }
func (o *Node) decodeXDR(xr *xdr.Reader) error { o.ID = xr.ReadStringMax(64) _AddressesSize := int(xr.ReadUint32()) if _AddressesSize > 16 { return xdr.ErrElementSizeExceeded } o.Addresses = make([]Address, _AddressesSize) for i := range o.Addresses { (&o.Addresses[i]).decodeXDR(xr) } return xr.Error() }
func (o *FileInfo) decodeXDR(xr *xdr.Reader) error { o.Name = xr.ReadStringMax(1024) o.Flags = xr.ReadUint32() o.Modified = int64(xr.ReadUint64()) o.Version = xr.ReadUint64() o.LocalVersion = xr.ReadUint64() _BlocksSize := int(xr.ReadUint32()) o.Blocks = make([]BlockInfo, _BlocksSize) for i := range o.Blocks { (&o.Blocks[i]).decodeXDR(xr) } return xr.Error() }
func (o *ClusterConfigMessage) decodeXDR(xr *xdr.Reader) error { o.ClientName = xr.ReadStringMax(64) o.ClientVersion = xr.ReadStringMax(64) _RepositoriesSize := int(xr.ReadUint32()) if _RepositoriesSize > 64 { return xdr.ErrElementSizeExceeded } o.Repositories = make([]Repository, _RepositoriesSize) for i := range o.Repositories { (&o.Repositories[i]).decodeXDR(xr) } _OptionsSize := int(xr.ReadUint32()) if _OptionsSize > 64 { return xdr.ErrElementSizeExceeded } o.Options = make([]Option, _OptionsSize) for i := range o.Options { (&o.Options[i]).decodeXDR(xr) } return xr.Error() }
func (o *QueryV2) decodeXDR(xr *xdr.Reader) error { o.Magic = xr.ReadUint32() o.NodeID = xr.ReadStringMax(64) return xr.Error() }
func (o *Option) decodeXDR(xr *xdr.Reader) error { o.Key = xr.ReadStringMax(64) o.Value = xr.ReadStringMax(1024) return xr.Error() }
func (o *CloseMessage) decodeXDR(xr *xdr.Reader) error { o.Reason = xr.ReadStringMax(1024) return xr.Error() }
func (o *Node) decodeXDR(xr *xdr.Reader) error { o.ID = xr.ReadStringMax(64) o.Flags = xr.ReadUint32() return xr.Error() }