public static void Encode(XdrDataOutputStream stream, DataValue encodedDataValue) { int DataValuesize = encodedDataValue.InnerValue.Length; stream.WriteInt(DataValuesize); stream.Write(encodedDataValue.InnerValue, 0, DataValuesize); }
public static void Encode(XdrDataOutputStream stream, PeerAddressIp encodedPeerAddressIp) { stream.WriteInt((int)encodedPeerAddressIp.Discriminant.InnerValue); switch (encodedPeerAddressIp.Discriminant.InnerValue) { case IPAddrType.IPAddrTypeEnum.IPv4: int ipv4size = encodedPeerAddressIp.Ipv4.Length; stream.Write(encodedPeerAddressIp.Ipv4, 0, ipv4size); break; case IPAddrType.IPAddrTypeEnum.IPv6: int ipv6size = encodedPeerAddressIp.Ipv6.Length; stream.Write(encodedPeerAddressIp.Ipv6, 0, ipv6size); break; } }
public static void Encode(XdrDataOutputStream stream, UpgradeType encodedUpgradeType) { int UpgradeTypesize = encodedUpgradeType.InnerValue.Length; stream.WriteInt(UpgradeTypesize); stream.Write(encodedUpgradeType.InnerValue, 0, UpgradeTypesize); }
public static void Encode(XdrDataOutputStream stream, Signature encodedSignature) { int Signaturesize = encodedSignature.InnerValue.Length; stream.WriteInt(Signaturesize); stream.Write(encodedSignature.InnerValue, 0, Signaturesize); }
public static void Encode(XdrDataOutputStream stream, AllowTrustOpAsset encodedAllowTrustOpAsset) { stream.WriteInt((int)encodedAllowTrustOpAsset.Discriminant.InnerValue); switch (encodedAllowTrustOpAsset.Discriminant.InnerValue) { case AssetType.AssetTypeEnum.ASSET_TYPE_CREDIT_ALPHANUM4: int assetCode4size = encodedAllowTrustOpAsset.AssetCode4.Length; stream.Write(encodedAllowTrustOpAsset.AssetCode4, 0, assetCode4size); break; case AssetType.AssetTypeEnum.ASSET_TYPE_CREDIT_ALPHANUM12: int assetCode12size = encodedAllowTrustOpAsset.AssetCode12.Length; stream.Write(encodedAllowTrustOpAsset.AssetCode12, 0, assetCode12size); break; } }
public static void Encode(XdrDataOutputStream stream, EncryptedBody encodedEncryptedBody) { int EncryptedBodysize = encodedEncryptedBody.InnerValue.Length; stream.WriteInt(EncryptedBodysize); stream.Write(encodedEncryptedBody.InnerValue, 0, EncryptedBodysize); }
public static void Encode(XdrDataOutputStream stream, AssetAlphaNum12 encodedAssetAlphaNum12) { int assetCodesize = encodedAssetAlphaNum12.AssetCode.Length; stream.Write(encodedAssetAlphaNum12.AssetCode, 0, assetCodesize); AccountID.Encode(stream, encodedAssetAlphaNum12.Issuer); }
public static void Encode(XdrDataOutputStream stream, HmacSha256Key encodedHmacSha256Key) { int keysize = encodedHmacSha256Key.Key.Length; stream.Write(encodedHmacSha256Key.Key, 0, keysize); }
public static void Encode(XdrDataOutputStream stream, AssetCode4 encodedAssetCode4) { int AssetCode4size = encodedAssetCode4.InnerValue.Length; stream.Write(encodedAssetCode4.InnerValue, 0, AssetCode4size); }
public static void Encode(XdrDataOutputStream stream, HmacSha256Mac encodedHmacSha256Mac) { int macsize = encodedHmacSha256Mac.Mac.Length; stream.Write(encodedHmacSha256Mac.Mac, 0, macsize); }
public static void Encode(XdrDataOutputStream stream, Hash encodedHash) { int Hashsize = encodedHash.InnerValue.Length; stream.Write(encodedHash.InnerValue, 0, Hashsize); }
public static void Encode(XdrDataOutputStream stream, Curve25519Secret encodedCurve25519Secret) { int keysize = encodedCurve25519Secret.Key.Length; stream.Write(encodedCurve25519Secret.Key, 0, keysize); }
public static void Encode(XdrDataOutputStream stream, SignatureHint encodedSignatureHint) { int SignatureHintsize = encodedSignatureHint.InnerValue.Length; stream.Write(encodedSignatureHint.InnerValue, 0, SignatureHintsize); }
public static void Encode(XdrDataOutputStream stream, Thresholds encodedThresholds) { int Thresholdssize = encodedThresholds.InnerValue.Length; stream.Write(encodedThresholds.InnerValue, 0, Thresholdssize); }
public static void Encode(XdrDataOutputStream stream, Uint256 encodedUint256) { int uint256size = encodedUint256.InnerValue.Length; stream.Write(encodedUint256.InnerValue, 0, uint256size); }