示例#1
0
 internal override unsafe Int64 GetTotalLength()
 {
     if (this.m_isInput)
     {
         return(DryadLinqNative.GetExpectedLength(this.m_vertexInfo, this.m_portNum));
     }
     else
     {
         throw new NotImplementedException();
     }
 }
示例#2
0
文件: VertexEnv.cs 项目: xyuan/Dryad
        internal Int64 GetInputSize()
        {
            Int64 totalSize = 0;

            for (UInt32 i = 0; i < this.m_numberOfInputs; i++)
            {
                Int64 channelSize = DryadLinqNative.GetExpectedLength(this.NativeHandle, i);
                if (channelSize == -1)
                {
                    return(-1);
                }
                totalSize += channelSize;
            }
            return(totalSize);
        }