Tpm2Lib.SymDefObject.ToNet C# (CSharp) Method

ToNet() private method

private ToNet ( Marshaller m ) : void
m Marshaller
return void
        internal override void ToNet(Marshaller m)
        {
            if (Algorithm == TpmAlgId.Xor)
            {
                Globs.Throw<NotImplementedException>("SymDefObject.ToNet: XOR is not supported");
            }
            m.Put(Algorithm, "algorithm");
            if (Algorithm == TpmAlgId.None || Algorithm == TpmAlgId.Null)
            {
                return;
            }
            m.Put(KeyBits, "keyBits");
            m.Put(Mode, "mode");
        }