Beispiel #1
0
            public bool TryTake(out StreamingArgument arg)
            {
                if (_readItr >= _captureCount)
                {
                    arg = default(StreamingArgument);
                    return(false);
                }

                arg = _args[_readItr++];
                return(true);
            }
Beispiel #2
0
            public ICapturing <TResult> Put(long offset, int size)
            {
                if (_args.Length <= _captureCount)
                {
                    throw new IndexOutOfRangeException("_args is full.");
                }

                _args[_captureCount++] = new StreamingArgument {
                    offset = offset, size = size
                };
                return(this);
            }