public static void Encode(IByteWriter stream, OfferEntryExt encodedOfferEntryExt) { XdrEncoding.EncodeInt32(encodedOfferEntryExt.Discriminant, stream); switch (encodedOfferEntryExt.Discriminant) { case 0: break; } }
public static void Encode(XdrDataOutputStream stream, OfferEntryExt encodedOfferEntryExt) { stream.WriteInt((int)encodedOfferEntryExt.Discriminant); switch (encodedOfferEntryExt.Discriminant) { case 0: break; } }
public static OfferEntryExt Decode(IByteReader stream) { OfferEntryExt decodedOfferEntryExt = new OfferEntryExt(); decodedOfferEntryExt.Discriminant = XdrEncoding.DecodeInt32(stream); switch (decodedOfferEntryExt.Discriminant) { case 0: break; } return decodedOfferEntryExt; }
public static void Encode(XdrDataOutputStream stream, OfferEntry encodedOfferEntry) { AccountID.Encode(stream, encodedOfferEntry.SellerID); Int64.Encode(stream, encodedOfferEntry.OfferID); Asset.Encode(stream, encodedOfferEntry.Selling); Asset.Encode(stream, encodedOfferEntry.Buying); Int64.Encode(stream, encodedOfferEntry.Amount); Price.Encode(stream, encodedOfferEntry.Price); Uint32.Encode(stream, encodedOfferEntry.Flags); OfferEntryExt.Encode(stream, encodedOfferEntry.Ext); }
public static OfferEntryExt Decode(IByteReader stream) { OfferEntryExt decodedOfferEntryExt = new OfferEntryExt(); decodedOfferEntryExt.Discriminant = XdrEncoding.DecodeInt32(stream); switch (decodedOfferEntryExt.Discriminant) { case 0: break; } return(decodedOfferEntryExt); }
public static OfferEntryExt Decode(XdrDataInputStream stream) { OfferEntryExt decodedOfferEntryExt = new OfferEntryExt(); int discriminant = stream.ReadInt(); decodedOfferEntryExt.Discriminant = discriminant; switch (decodedOfferEntryExt.Discriminant) { case 0: break; } return(decodedOfferEntryExt); }
public static OfferEntry Decode(XdrDataInputStream stream) { OfferEntry decodedOfferEntry = new OfferEntry(); decodedOfferEntry.SellerID = AccountID.Decode(stream); decodedOfferEntry.OfferID = Int64.Decode(stream); decodedOfferEntry.Selling = Asset.Decode(stream); decodedOfferEntry.Buying = Asset.Decode(stream); decodedOfferEntry.Amount = Int64.Decode(stream); decodedOfferEntry.Price = Price.Decode(stream); decodedOfferEntry.Flags = Uint32.Decode(stream); decodedOfferEntry.Ext = OfferEntryExt.Decode(stream); return(decodedOfferEntry); }