Esempio n. 1
0
        public static DecoratedSignature Decode(XdrDataInputStream stream)
        {
            DecoratedSignature decodedDecoratedSignature = new DecoratedSignature();

            decodedDecoratedSignature.Hint      = SignatureHint.Decode(stream);
            decodedDecoratedSignature.Signature = Signature.Decode(stream);
            return(decodedDecoratedSignature);
        }
        public static SignatureHint Decode(XdrDataInputStream stream)
        {
            SignatureHint decodedSignatureHint = new SignatureHint();
            int           SignatureHintsize    = 4;

            decodedSignatureHint.InnerValue = new byte[SignatureHintsize];
            stream.Read(decodedSignatureHint.InnerValue, 0, SignatureHintsize);
            return(decodedSignatureHint);
        }
Esempio n. 3
0
 public static void Encode(XdrDataOutputStream stream, DecoratedSignature encodedDecoratedSignature)
 {
     SignatureHint.Encode(stream, encodedDecoratedSignature.Hint);
     Signature.Encode(stream, encodedDecoratedSignature.Signature);
 }
        public static void Encode(XdrDataOutputStream stream, SignatureHint encodedSignatureHint)
        {
            int SignatureHintsize = encodedSignatureHint.InnerValue.Length;

            stream.Write(encodedSignatureHint.InnerValue, 0, SignatureHintsize);
        }