Provides formatting for structures and other TPM types.
Exemplo n.º 1
0
 public override String ToString()
 {
     var p = new TpmStructPrinter();
     p.PrintName(GetType().ToString());
     ToStringInternal(p);
     return p.ToString();
 }
Exemplo n.º 2
0
        public override String ToString()
        {
            var p = new TpmStructPrinter();

            p.PrintName(GetType().ToString());
            ToStringInternal(p);
            return(p.ToString());
        }
Exemplo n.º 3
0
        virtual internal void ToStringInternal(TpmStructPrinter p)
        {
            bool enabled = dbg.Enabled;

            dbg.Enabled = false;
            var members = GetFieldsToMarshal();

            dbg.Enabled = enabled;
            foreach (var mem in members)
            {
                MemberInfo memInfo = mem;
                object     memVal  = Globs.GetMember(memInfo, this);
                Type       memType = Globs.GetMemberType(memInfo);
                p.Print(memInfo.Name, Globs.ToCSharpStyle(memType.Name), memVal);
            }
        }
Exemplo n.º 4
0
 internal override void ToStringInternal(TpmStructPrinter p)
 {
     p.Print("HashAlg", "TpmAlgId", HashAlg);
     p.Print("HashData", "byte", HashData);
 }
Exemplo n.º 5
0
 virtual internal void ToStringInternal(TpmStructPrinter p)
 {
     bool enabled = dbg.Enabled;
     dbg.Enabled = false;
     var members = GetFieldsToMarshal();
     dbg.Enabled = enabled;
     foreach (var mem in members)
     {
         MemberInfo memInfo = mem;
         object memVal = Globs.GetMember(memInfo, this);
         Type memType = Globs.GetMemberType(memInfo);
         p.Print(memInfo.Name, Globs.ToCSharpStyle(memType.Name), memVal);
     }
 }
Exemplo n.º 6
0
 internal override void ToStringInternal(TpmStructPrinter p)
 {
     p.Print("HashAlg", "TpmAlgId", HashAlg);
     p.Print("HashData", "byte", HashData);
 }