Ejemplo n.º 1
0
 public override void Unmarshal(ReadOnlyMemory <byte> bytes)
 {
     using (var buffer = new NdrBuffer(bytes))
     {
         buffer.UnmarshalObject(this);
     }
 }
Ejemplo n.º 2
0
        private ClaimsSet UnmarshalClaimsSet(ReadOnlyMemory <byte> claimSet)
        {
            if (this.CompressionFormat != CompressionFormat.COMPRESSION_FORMAT_NONE)
            {
                claimSet = Compressions.Decompress(claimSet.Span, this.UncompressedClaimSetSize, this.CompressionFormat);
            }

            var claimsSet = new ClaimsSet();

            using (var buffer = new NdrBuffer(claimSet))
            {
                buffer.UnmarshalObject(claimsSet);
            }

            return(claimsSet);
        }