예제 #1
0
        public int GenerateNextToken(MSI.IBufferOffsetSize incoming, out MSI.IBufferOffsetSize outgoing)
        {
            var input  = incoming != null ? new MSI.TlsBuffer(BOSWrapper.Wrap(incoming)) : null;
            var output = new MSI.TlsMultiBuffer();
            var retval = Context.GenerateNextToken(input, output);

            if (output.IsEmpty)
            {
                outgoing = null;
            }
            outgoing = BOSWrapper.Wrap(output.StealBuffer());
            return((int)retval);
        }
예제 #2
0
		public int GenerateNextToken (MSI.IBufferOffsetSize incoming, out MSI.IBufferOffsetSize outgoing)
		{
			var input = incoming != null ? new MSI.TlsBuffer (BOSWrapper.Wrap (incoming)) : null;
			var output = new MSI.TlsMultiBuffer ();
			var retval = Context.GenerateNextToken (input, output);
			if (output.IsEmpty)
				outgoing = null;
			outgoing = BOSWrapper.Wrap (output.StealBuffer ());
			return (int)retval;
		}