private bool IsFull(Doc chunk) { var data = chunk["data"] as byte[]; if (data == null) throw new NullReferenceException("chunk data is null"); return data.Length == _fileInfo.ChunkSize; }