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 *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 *TestStruct) decodeXDR(xr *xdr.Reader) error { o.I = int(xr.ReadUint64()) o.I16 = int16(xr.ReadUint16()) o.UI16 = xr.ReadUint16() o.I32 = int32(xr.ReadUint32()) o.UI32 = xr.ReadUint32() o.I64 = int64(xr.ReadUint64()) o.UI64 = xr.ReadUint64() o.BS = xr.ReadBytes() o.S = xr.ReadString() return xr.Error() }
func (o *Address) decodeXDR(xr *xdr.Reader) error { o.IP = xr.ReadBytesMax(16) o.Port = xr.ReadUint16() return xr.Error() }