Esempio n. 1
0
            public static MutableString DigestNew(RubyContext /*!*/ context, object self)
            {
                MutableString value = Finish.Target(Finish, context, self);

                Reset.Target(Reset, context, self);
                return(value);
            }
Esempio n. 2
0
            public static MutableString Digest(RubyContext /*!*/ context, object self, [DefaultProtocol, NotNull] MutableString /*!*/ str)
            {
                Update.Target(Update, context, self, str);
                MutableString value = Finish.Target(Finish, context, self);

                Reset.Target(Reset, context, self);

                return(value);
            }
Esempio n. 3
0
            public static MutableString Digest(RubyContext /*!*/ context, object self)
            {
                object clone;

                if (!RubyUtils.TryDuplicateObject(context, self, true, out clone))
                {
                    throw RubyExceptions.CreateArgumentError("unable to copy object");
                }
                return(Finish.Target(Finish, context, clone));
            }