public static void Encode(IByteWriter stream, TrustLineEntry encodedTrustLineEntry) { AccountID.Encode(stream, encodedTrustLineEntry.AccountID); Asset.Encode(stream, encodedTrustLineEntry.Asset); Int64.Encode(stream, encodedTrustLineEntry.Balance); Int64.Encode(stream, encodedTrustLineEntry.Limit); Uint32.Encode(stream, encodedTrustLineEntry.Flags); TrustLineEntryExt.Encode(stream, encodedTrustLineEntry.Ext); }
public static TrustLineEntry Decode(IByteReader stream) { TrustLineEntry decodedTrustLineEntry = new TrustLineEntry(); decodedTrustLineEntry.AccountID = AccountID.Decode(stream); decodedTrustLineEntry.Asset = Asset.Decode(stream); decodedTrustLineEntry.Balance = Int64.Decode(stream); decodedTrustLineEntry.Limit = Int64.Decode(stream); decodedTrustLineEntry.Flags = Uint32.Decode(stream); decodedTrustLineEntry.Ext = TrustLineEntryExt.Decode(stream); return decodedTrustLineEntry; }