示例#1
0
文件: FileChunk.cs 项目: ifzz/FDK
        internal FileChunk(FxFileChunk fileChunk)
        {
            if (fileChunk == null)
                throw new ArgumentNullException(nameof(fileChunk));

            this.FileName = fileChunk.FileName;
            this.ChunksNumber = fileChunk.ChunksNumber;
            this.FileSize = fileChunk.FileSize;
            this.Data = fileChunk.Data;
        }
示例#2
0
        internal FileChunk(FxFileChunk fileChunk)
        {
            if (fileChunk == null)
            {
                throw new ArgumentNullException(nameof(fileChunk));
            }

            this.FileId      = fileChunk.FileId;
            this.FileName    = fileChunk.FileName;
            this.FileSize    = fileChunk.FileSize;
            this.ChunkId     = fileChunk.ChunkId;
            this.TotalChunks = fileChunk.TotalChunks;
            this.Data        = fileChunk.Data;
        }