public static StellarValueExt Decode(XdrDataInputStream stream) { StellarValueExt decodedStellarValueExt = new StellarValueExt(); StellarValueType discriminant = StellarValueType.Decode(stream); decodedStellarValueExt.Discriminant = discriminant; switch (decodedStellarValueExt.Discriminant.InnerValue) { case StellarValueType.StellarValueTypeEnum.STELLAR_VALUE_BASIC: break; case StellarValueType.StellarValueTypeEnum.STELLAR_VALUE_SIGNED: decodedStellarValueExt.LcValueSignature = LedgerCloseValueSignature.Decode(stream); break; } return(decodedStellarValueExt); }
public static void Encode(XdrDataOutputStream stream, StellarValueType value) { stream.WriteInt((int)value.InnerValue); }