|
@@ -256,6 +256,63 @@ func (o *JoinRelayRequest) DecodeXDRFrom(xr *xdr.Reader) error {
|
|
|
|
|
|
/*
|
|
|
|
|
|
+RelayFull Structure:
|
|
|
+
|
|
|
+ 0 1 2 3
|
|
|
+ 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
|
|
|
++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
|
+
|
|
|
+
|
|
|
+struct RelayFull {
|
|
|
+}
|
|
|
+
|
|
|
+*/
|
|
|
+
|
|
|
+func (o RelayFull) EncodeXDR(w io.Writer) (int, error) {
|
|
|
+ var xw = xdr.NewWriter(w)
|
|
|
+ return o.EncodeXDRInto(xw)
|
|
|
+}
|
|
|
+
|
|
|
+func (o RelayFull) MarshalXDR() ([]byte, error) {
|
|
|
+ return o.AppendXDR(make([]byte, 0, 128))
|
|
|
+}
|
|
|
+
|
|
|
+func (o RelayFull) MustMarshalXDR() []byte {
|
|
|
+ bs, err := o.MarshalXDR()
|
|
|
+ if err != nil {
|
|
|
+ panic(err)
|
|
|
+ }
|
|
|
+ return bs
|
|
|
+}
|
|
|
+
|
|
|
+func (o RelayFull) AppendXDR(bs []byte) ([]byte, error) {
|
|
|
+ var aw = xdr.AppendWriter(bs)
|
|
|
+ var xw = xdr.NewWriter(&aw)
|
|
|
+ _, err := o.EncodeXDRInto(xw)
|
|
|
+ return []byte(aw), err
|
|
|
+}
|
|
|
+
|
|
|
+func (o RelayFull) EncodeXDRInto(xw *xdr.Writer) (int, error) {
|
|
|
+ return xw.Tot(), xw.Error()
|
|
|
+}
|
|
|
+
|
|
|
+func (o *RelayFull) DecodeXDR(r io.Reader) error {
|
|
|
+ xr := xdr.NewReader(r)
|
|
|
+ return o.DecodeXDRFrom(xr)
|
|
|
+}
|
|
|
+
|
|
|
+func (o *RelayFull) UnmarshalXDR(bs []byte) error {
|
|
|
+ var br = bytes.NewReader(bs)
|
|
|
+ var xr = xdr.NewReader(br)
|
|
|
+ return o.DecodeXDRFrom(xr)
|
|
|
+}
|
|
|
+
|
|
|
+func (o *RelayFull) DecodeXDRFrom(xr *xdr.Reader) error {
|
|
|
+ return xr.Error()
|
|
|
+}
|
|
|
+
|
|
|
+/*
|
|
|
+
|
|
|
JoinSessionRequest Structure:
|
|
|
|
|
|
0 1 2 3
|